@lunora/studio 1.0.0-alpha.7 → 1.0.0-alpha.71
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/LICENSE.md +6 -0
- package/dist/index.d.ts +762 -779
- package/dist/index.js +1 -41
- package/dist/mount.d.ts +10 -10
- package/dist/mount.js +1 -26
- package/dist/packem_chunks/ApiTab.js +1 -0
- package/dist/packem_chunks/AuditPanel.js +1 -0
- package/dist/packem_chunks/DeploymentHealthPanel.js +1 -0
- package/dist/packem_chunks/ExportImportPanel.js +3 -0
- package/dist/packem_chunks/FileBrowser.js +4 -0
- package/dist/packem_chunks/FunctionRunner.js +1 -0
- package/dist/packem_chunks/FunctionStatsPanel.js +1 -0
- package/dist/packem_chunks/HealthPanel.js +1 -0
- package/dist/packem_chunks/InsightsPanel.js +1 -0
- package/dist/packem_chunks/LogsPanel.js +1 -0
- package/dist/packem_chunks/MailPanel.js +2 -0
- package/dist/packem_chunks/MetricsPanel.js +1 -0
- package/dist/packem_chunks/MigrationsPanel.js +1 -0
- package/dist/packem_chunks/NotificationsPanel.js +1 -0
- package/dist/packem_chunks/PitrPanel.js +1 -0
- package/dist/packem_chunks/SchemaViewer.js +2 -0
- package/dist/packem_chunks/SecurityAdvisorPanel.js +1 -0
- package/dist/packem_chunks/SettingsPanel.js +1 -0
- package/dist/packem_chunks/SqlEditorPanel.js +4 -0
- package/dist/packem_chunks/TableEditor.js +1 -0
- package/dist/packem_chunks/agents-panel.js +1 -0
- package/dist/packem_chunks/analytics-panel.js +1 -0
- package/dist/packem_chunks/auth-audit-panel.js +1 -0
- package/dist/packem_chunks/auth-config-panel.js +1 -0
- package/dist/packem_chunks/auth-sessions-panel.js +1 -0
- package/dist/packem_chunks/containers-panel.js +1 -0
- package/dist/packem_chunks/dashboards-panel.js +1 -0
- package/dist/packem_chunks/fanout-panel.js +1 -0
- package/dist/packem_chunks/flags-panel.js +1 -0
- package/dist/packem_chunks/issues-panel.js +1 -0
- package/dist/packem_chunks/kv-browser.js +1 -0
- package/dist/packem_chunks/log-drains-panel.js +4 -0
- package/dist/packem_chunks/organizations-panel.js +1 -0
- package/dist/packem_chunks/payments-panel.js +1 -0
- package/dist/packem_chunks/permissions-panel.js +1 -0
- package/dist/packem_chunks/queues-panel.js +1 -0
- package/dist/packem_chunks/rls-panel.js +1 -0
- package/dist/packem_chunks/schedule-panel.js +1 -0
- package/dist/packem_chunks/sparkline.js +1 -0
- package/dist/packem_chunks/storage-rules-panel.js +1 -0
- package/dist/packem_chunks/subscriptions-panel.js +1 -0
- package/dist/packem_chunks/sync-client-panel.js +1 -0
- package/dist/packem_chunks/traces-panel.js +1 -0
- package/dist/packem_chunks/users-panel.js +1 -0
- package/dist/packem_chunks/vector-browser.js +1 -0
- package/dist/packem_chunks/workflows-panel.js +1 -0
- package/dist/packem_shared/ADMIN_FUNCTIONS-BYNSbBVE.js +1 -0
- package/dist/packem_shared/ApiDocsPanel-eJYZlylw.js +2 -0
- package/dist/packem_shared/ApiReferencePanel-C42v1jr6.js +1 -0
- package/dist/packem_shared/CommandPalette-CVIaY3j8.js +1 -0
- package/dist/packem_shared/ConfirmButton-CTL3f3kr.js +1 -0
- package/dist/packem_shared/ConnectionBadge-DOk0CQWo.js +1 -0
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-BCC8_4BQ.js +1 -0
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-B-hcFVoi.js +1 -0
- package/dist/packem_shared/DEFAULT_LOCALE-BZ4NojpD.js +1 -0
- package/dist/packem_shared/DataBrowser-B8J5lHjP.js +1 -0
- package/dist/packem_shared/DataFilters-Csb30F0C.js +1 -0
- package/dist/packem_shared/ErrorBoundary-DvzYskH7.js +1 -0
- package/dist/packem_shared/GlobalDataBrowser-RLJ6NvOs.js +1 -0
- package/dist/packem_shared/HomePanel-DL1HupAN.js +1 -0
- package/dist/packem_shared/OpenRpcReferencePanel-sGsIgYWj.js +1 -0
- package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.js +1 -0
- package/dist/packem_shared/ScheduledJobs-DUbo6epc.js +1 -0
- package/dist/packem_shared/ShardInput-BVn2iCU0.js +1 -0
- package/dist/packem_shared/Studio-BWBclm_C.js +1 -0
- package/dist/packem_shared/StudioApp-BFm73yVr.js +1 -0
- package/dist/packem_shared/StudioI18nProvider-CZ5h4nrV.js +1 -0
- package/dist/packem_shared/advisor-view-DaCX9Jy5.js +1 -0
- package/dist/packem_shared/aggregateMetrics-BNfajLa2.js +1 -0
- package/dist/packem_shared/alert-CVcOFuDR.js +1 -0
- package/dist/packem_shared/app.d-bRPJhby-.d.ts +254 -0
- package/dist/packem_shared/badge-BbuuAio7.js +1 -0
- package/dist/packem_shared/bar-chart-AryFCeoa.js +9 -0
- package/dist/packem_shared/browser-storage-xjTyMKY0.js +1 -0
- package/dist/packem_shared/button-BkCrNcAs.js +1 -0
- package/dist/packem_shared/card-CIDGUN6K.js +1 -0
- package/dist/packem_shared/cf-links-gbDy51nR.js +1 -0
- package/dist/packem_shared/checkbox-StT4Gob6.js +1 -0
- package/dist/packem_shared/data-grid-BMBKzMEJ.js +1 -0
- package/dist/packem_shared/data-view-params-C8T3bW1z.js +1 -0
- package/dist/packem_shared/dropdown-menu-C3RQ_HlW.js +2 -0
- package/dist/packem_shared/empty-state-Cg7t_8qu.js +1 -0
- package/dist/packem_shared/error-alert-B59DnrDI.js +1 -0
- package/dist/packem_shared/grid-features-uZCUj955.js +6 -0
- package/dist/packem_shared/home-panel-B-8BCffw.js +3 -0
- package/dist/packem_shared/input-JHu63lTv.js +1 -0
- package/dist/packem_shared/internal-AtZ4bTal.js +2 -0
- package/dist/packem_shared/label-6uP1obNF.js +1 -0
- package/dist/packem_shared/live-status-CGW2JHf_.js +1 -0
- package/dist/packem_shared/log-fields-CoL3hsIQ.js +1 -0
- package/dist/packem_shared/modal-shell-CUwwWC2o.js +1 -0
- package/dist/packem_shared/reference-view-KvhektwF.js +12 -0
- package/dist/packem_shared/result-chart-CwKhhKM0.js +1 -0
- package/dist/packem_shared/scroll-area-DTEq6Jec.js +2 -0
- package/dist/packem_shared/select-Bul-DeII.js +2 -0
- package/dist/packem_shared/shard-history-DMEW5VBE.js +1 -0
- package/dist/packem_shared/skeleton-C1wQ9M5t.js +1 -0
- package/dist/packem_shared/sparkline-DtcZoU48.js +1 -0
- package/dist/packem_shared/storage-tier-DznqOf-q.js +1 -0
- package/dist/packem_shared/studio-BHA7hnI3.js +2 -0
- package/dist/packem_shared/table-DdJBrClo.js +2 -0
- package/dist/packem_shared/table-list-sidebar-CMCcNALK.js +1 -0
- package/dist/packem_shared/textarea-Bu2-jKAs.js +1 -0
- package/dist/packem_shared/trace-handoff-Dw7mwjxu.js +1 -0
- package/dist/packem_shared/use-admin-query-Di3fLE8H.js +1 -0
- package/dist/packem_shared/use-async-submit-H68GHPz8.js +1 -0
- package/dist/packem_shared/useDebounced-Ihdiid_k.js +1 -0
- package/dist/packem_shared/utils-bhneXptQ.js +1 -0
- package/dist/packem_shared/virtual-rect-1o1veP7R.js +1 -0
- package/dist/standalone/chunk-2F7G7IWQ.js +1 -0
- package/dist/standalone/chunk-2OUPA2WJ.js +1 -0
- package/dist/standalone/chunk-2PJNAWB3.js +1 -0
- package/dist/standalone/chunk-2Y36BVVM.js +4 -0
- package/dist/standalone/chunk-34UVAASH.js +1 -0
- package/dist/standalone/chunk-35II7U25.js +11 -0
- package/dist/standalone/chunk-3FUFEZ65.js +1 -0
- package/dist/standalone/chunk-3QRTYSSX.js +1 -0
- package/dist/standalone/chunk-3RTTXLMU.js +1 -0
- package/dist/standalone/chunk-3XIESWL4.js +1 -0
- package/dist/standalone/chunk-4CGALXS3.js +19 -0
- package/dist/standalone/chunk-4UOFSGUS.js +1 -0
- package/dist/standalone/chunk-4WLYA3XE.js +1 -0
- package/dist/standalone/chunk-54MMVNPT.js +1 -0
- package/dist/standalone/chunk-5L2MD6F6.js +1 -0
- package/dist/standalone/chunk-5OWIOACV.js +13 -0
- package/dist/standalone/chunk-5RF4QDDA.js +6 -0
- package/dist/standalone/chunk-5U2THBI7.js +1 -0
- package/dist/standalone/chunk-5Y3QLNWX.js +1 -0
- package/dist/standalone/chunk-65OTWFS3.js +1 -0
- package/dist/standalone/chunk-6DWCIIHE.js +1 -0
- package/dist/standalone/chunk-6ST5ECQA.js +1 -0
- package/dist/standalone/chunk-7J5N6DGQ.js +1 -0
- package/dist/standalone/chunk-7LQWFOEU.js +1 -0
- package/dist/standalone/chunk-7QIFDWQV.js +1 -0
- package/dist/standalone/chunk-7RXOPYR5.js +1 -0
- package/dist/standalone/chunk-7T7UOTYK.js +1 -0
- package/dist/standalone/chunk-7YEFOSPH.js +1 -0
- package/dist/standalone/chunk-AVAC26HJ.js +1 -0
- package/dist/standalone/chunk-B43FTQJ7.js +1 -0
- package/dist/standalone/chunk-BEH5N5ZA.js +1 -0
- package/dist/standalone/chunk-BGBLQ563.js +1 -0
- package/dist/standalone/chunk-BNUJ7QMG.js +3 -0
- package/dist/standalone/chunk-C43X4M5U.js +1 -0
- package/dist/standalone/chunk-CFPZYHPY.js +2 -0
- package/dist/standalone/chunk-D7XXWV4E.js +1 -0
- package/dist/standalone/chunk-DVOBKIUX.js +1 -0
- package/dist/standalone/chunk-EKRN4ZQM.js +1 -0
- package/dist/standalone/chunk-ESVP44Y3.js +1 -0
- package/dist/standalone/chunk-EVN46TVV.js +1 -0
- package/dist/standalone/chunk-EXFBIISG.js +2 -0
- package/dist/standalone/chunk-F5QWLENA.js +1 -0
- package/dist/standalone/chunk-F6GOKFMU.js +3 -0
- package/dist/standalone/chunk-FGTK44LR.js +1 -0
- package/dist/standalone/chunk-FXCBF4XT.js +1 -0
- package/dist/standalone/chunk-GMR677FL.js +1 -0
- package/dist/standalone/chunk-GRL5MG3Z.js +1 -0
- package/dist/standalone/chunk-GSPTEMYN.js +1 -0
- package/dist/standalone/chunk-GXZAXNZI.js +1 -0
- package/dist/standalone/chunk-H7NIIBHH.js +1 -0
- package/dist/standalone/chunk-HP2UCWND.js +1 -0
- package/dist/standalone/chunk-HPFLBYRI.js +1 -0
- package/dist/standalone/chunk-IC4L6G56.js +1 -0
- package/dist/standalone/chunk-IDNNI63H.js +1 -0
- package/dist/standalone/chunk-ILNELDFC.js +1 -0
- package/dist/standalone/chunk-IVFHIQOT.js +1 -0
- package/dist/standalone/chunk-JN2Y24PY.js +1 -0
- package/dist/standalone/chunk-KDOC2DP5.js +1 -0
- package/dist/standalone/chunk-KUVMORDQ.js +1 -0
- package/dist/standalone/chunk-KYF2E5CJ.js +1 -0
- package/dist/standalone/chunk-L7N7F3DA.js +1 -0
- package/dist/standalone/chunk-LE56LPNH.js +13 -0
- package/dist/standalone/chunk-LEDWUPXM.js +1 -0
- package/dist/standalone/chunk-LFKCLLPT.js +1 -0
- package/dist/standalone/chunk-LFXFP4IF.js +1 -0
- package/dist/standalone/chunk-LJDP7NRB.js +1 -0
- package/dist/standalone/chunk-LLXFYRGQ.js +1 -0
- package/dist/standalone/chunk-M536Y2KX.js +1 -0
- package/dist/standalone/chunk-MIQTKZAR.js +1 -0
- package/dist/standalone/chunk-OHKRN65U.js +1 -0
- package/dist/standalone/chunk-P24JBHEZ.js +4 -0
- package/dist/standalone/chunk-PF7V3G2Z.js +62 -0
- package/dist/standalone/chunk-PWWHP76O.js +1 -0
- package/dist/standalone/chunk-QBWRC5YX.js +1 -0
- package/dist/standalone/chunk-QGKAJTQQ.js +1 -0
- package/dist/standalone/chunk-QLJJ5YYZ.js +1 -0
- package/dist/standalone/chunk-QVEHPYA5.js +1 -0
- package/dist/standalone/chunk-QWGT25SE.js +1 -0
- package/dist/standalone/chunk-QWJ3NPE3.js +1 -0
- package/dist/standalone/chunk-RAA2RGG6.js +1 -0
- package/dist/standalone/chunk-RBU52M5T.js +1 -0
- package/dist/standalone/chunk-SA3MDZC3.js +1 -0
- package/dist/standalone/chunk-SD4BERSA.js +1 -0
- package/dist/standalone/chunk-SFDOII3B.js +1 -0
- package/dist/standalone/chunk-SKHEGARW.js +1 -0
- package/dist/standalone/chunk-SMIESS7P.js +1 -0
- package/dist/standalone/chunk-T2JIUFOD.js +4 -0
- package/dist/standalone/chunk-T6VMSOBB.js +1 -0
- package/dist/standalone/chunk-THIXMMZD.js +1 -0
- package/dist/standalone/chunk-TJ2WZ5OP.js +1 -0
- package/dist/standalone/chunk-TLHJRWNK.js +1 -0
- package/dist/standalone/chunk-UIS34ZPB.js +8 -0
- package/dist/standalone/chunk-UNUU7CJJ.js +1 -0
- package/dist/standalone/chunk-UZERI5YC.js +1 -0
- package/dist/standalone/chunk-V53KNYRN.js +1 -0
- package/dist/standalone/chunk-VPAXCQ2Y.js +4 -0
- package/dist/standalone/chunk-X2FQ6B5V.js +1 -0
- package/dist/standalone/chunk-XBDKZZ67.js +1 -0
- package/dist/standalone/chunk-XEDU5FO4.js +1 -0
- package/dist/standalone/chunk-XQBTNJUQ.js +1 -0
- package/dist/standalone/chunk-XQCVZAGU.js +1 -0
- package/dist/standalone/chunk-XQGANNLS.js +1 -0
- package/dist/standalone/chunk-XSD4Y6SQ.js +1 -0
- package/dist/standalone/chunk-XXQUMVWH.js +1 -0
- package/dist/standalone/chunk-YD5NF6UT.js +1 -0
- package/dist/standalone/chunk-YI3WYUXK.js +1 -0
- package/dist/standalone/chunk-ZJGP6EKR.js +1 -0
- package/dist/standalone/chunk-ZNNAGR6N.js +1 -0
- package/dist/standalone/studio.js +9 -356
- package/dist/styles.css +2 -2
- package/package.json +17 -15
- package/dist/packem_shared/ADMIN_FUNCTIONS-DmBqMZ-z.js +0 -45
- package/dist/packem_shared/ApiDocsPanel-C5-yJ1p7.js +0 -842
- package/dist/packem_shared/ApiReferencePanel-1vubqG5s.js +0 -229
- package/dist/packem_shared/ApiTab-W3no0KOj.js +0 -251
- package/dist/packem_shared/AuditPanel-Bq4o_IqT.js +0 -212
- package/dist/packem_shared/CommandPalette-BtgkBzZI.js +0 -373
- package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +0 -59
- package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +0 -111
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
- package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +0 -27
- package/dist/packem_shared/DataBrowser-CtBe1So9.js +0 -4542
- package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
- package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
- package/dist/packem_shared/ExportImportPanel-dxY56TDF.js +0 -193
- package/dist/packem_shared/FileBrowser-Dhy4zES8.js +0 -2932
- package/dist/packem_shared/FunctionRunner--fQJRPAD.js +0 -343
- package/dist/packem_shared/FunctionStatsPanel-BjRUA_G3.js +0 -432
- package/dist/packem_shared/GlobalDataBrowser-BTEmGrph.js +0 -318
- package/dist/packem_shared/HealthPanel-PxclMWmA.js +0 -640
- package/dist/packem_shared/HomePanel-Cw16stjq.js +0 -1273
- package/dist/packem_shared/InsightsPanel-CWS_C-xW.js +0 -423
- package/dist/packem_shared/LogsPanel-CTW8CFcM.js +0 -839
- package/dist/packem_shared/MailPanel-BwkvfIHF.js +0 -447
- package/dist/packem_shared/MetricsPanel-BLuOhZQ4.js +0 -1625
- package/dist/packem_shared/MigrationsPanel-DT3lnwHF.js +0 -246
- package/dist/packem_shared/OpenRpcReferencePanel-vbcYbv3V.js +0 -191
- package/dist/packem_shared/PitrPanel-CdErL7EJ.js +0 -252
- package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
- package/dist/packem_shared/ScheduledJobs-CabfKbyM.js +0 -159
- package/dist/packem_shared/SchemaViewer-LJDcmNIO.js +0 -2512
- package/dist/packem_shared/SecurityAdvisorPanel-C_ETsPih.js +0 -79
- package/dist/packem_shared/SettingsPanel-C0uLRf5P.js +0 -176
- package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
- package/dist/packem_shared/SqlEditorPanel-CguV7otm.js +0 -13
- package/dist/packem_shared/Studio-BmSGSIuY.js +0 -33
- package/dist/packem_shared/StudioApp-D4azxYBu.js +0 -657
- package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
- package/dist/packem_shared/TableEditor-ChfUOZec.js +0 -371
- package/dist/packem_shared/advisor-view-CGcfMiPq.js +0 -159
- package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
- package/dist/packem_shared/app.d-CCmwDEVs.d.ts +0 -300
- package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
- package/dist/packem_shared/bar-chart-CzJAgqkp.js +0 -3245
- package/dist/packem_shared/button-BhsN2uZH.js +0 -49
- package/dist/packem_shared/card-DURq3ElK.js +0 -175
- package/dist/packem_shared/cf-links-2cktDedA.js +0 -8
- package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
- package/dist/packem_shared/data-grid-B5CaV3wS.js +0 -183
- package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
- package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
- package/dist/packem_shared/grid-features-CzUfqgsM.js +0 -840
- package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
- package/dist/packem_shared/internal-rXJEAhXS.js +0 -68
- package/dist/packem_shared/label-D8ykjn5J.js +0 -46
- package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
- package/dist/packem_shared/reference-view-B4E49Lip.js +0 -2180
- package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
- package/dist/packem_shared/sparkline-10dG-_f0.js +0 -93
- package/dist/packem_shared/sql-editor-panel-BFRpzj6r.js +0 -2562
- package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
- package/dist/packem_shared/studio-H9fuQgSj.js +0 -10303
- package/dist/packem_shared/table-_RzNvy3R.js +0 -246
- package/dist/packem_shared/table-list-sidebar-Bg7uzbvC.js +0 -832
- package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
- package/dist/packem_shared/use-live-admin-Dq6g3daN.js +0 -73
- package/dist/packem_shared/use-live-shard-seed-Cuk3dnH0.js +0 -76
- package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
- package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
- package/dist/packem_shared/virtual-rect-CVMUskSm.js +0 -10
|
@@ -1,447 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { useLunora } from '@lunora/react';
|
|
3
|
-
import { useState, useEffect, useMemo } from 'react';
|
|
4
|
-
import { B as Badge } from './badge-B2PKA1-5.js';
|
|
5
|
-
import { B as Button } from './button-BhsN2uZH.js';
|
|
6
|
-
import { E as EmptyState } from './empty-state-DY_oe0k6.js';
|
|
7
|
-
import { I as Input } from './input-XH4r1Pt1.js';
|
|
8
|
-
import { c } from 'react/compiler-runtime';
|
|
9
|
-
import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
|
|
10
|
-
import { c as cn } from './utils-B05Dmz_H.js';
|
|
11
|
-
import { jsxDEV, Fragment } from 'react/jsx-dev-runtime';
|
|
12
|
-
import { Separator as Separator$1 } from '@base-ui/react/separator';
|
|
13
|
-
import { useAutoRefresh } from './DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
|
|
14
|
-
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
15
|
-
import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-DmBqMZ-z.js';
|
|
16
|
-
import { f as fireAndForget, b as formatTimestamp, c as callOptions, e as errorMessage, g as copyToClipboard, a as adminRef } from './internal-rXJEAhXS.js';
|
|
17
|
-
|
|
18
|
-
function Separator({
|
|
19
|
-
className,
|
|
20
|
-
orientation = "horizontal",
|
|
21
|
-
...props
|
|
22
|
-
}) {
|
|
23
|
-
return /* @__PURE__ */ jsxDEV(Separator$1, {
|
|
24
|
-
"data-slot": "separator",
|
|
25
|
-
orientation,
|
|
26
|
-
className: cn("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch", className),
|
|
27
|
-
...props
|
|
28
|
-
}, void 0, false);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function ScrollArea(t0) {
|
|
32
|
-
const $ = c(14);
|
|
33
|
-
let children;
|
|
34
|
-
let className;
|
|
35
|
-
let props;
|
|
36
|
-
if ($[0] !== t0) {
|
|
37
|
-
({
|
|
38
|
-
className,
|
|
39
|
-
children,
|
|
40
|
-
...props
|
|
41
|
-
} = t0);
|
|
42
|
-
$[0] = t0;
|
|
43
|
-
$[1] = children;
|
|
44
|
-
$[2] = className;
|
|
45
|
-
$[3] = props;
|
|
46
|
-
} else {
|
|
47
|
-
children = $[1];
|
|
48
|
-
className = $[2];
|
|
49
|
-
props = $[3];
|
|
50
|
-
}
|
|
51
|
-
let t1;
|
|
52
|
-
if ($[4] !== className) {
|
|
53
|
-
t1 = cn("relative", className);
|
|
54
|
-
$[4] = className;
|
|
55
|
-
$[5] = t1;
|
|
56
|
-
} else {
|
|
57
|
-
t1 = $[5];
|
|
58
|
-
}
|
|
59
|
-
let t2;
|
|
60
|
-
if ($[6] !== children) {
|
|
61
|
-
t2 = /* @__PURE__ */ jsxDEV(ScrollArea$1.Viewport, {
|
|
62
|
-
"data-slot": "scroll-area-viewport",
|
|
63
|
-
className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",
|
|
64
|
-
children
|
|
65
|
-
}, void 0, false);
|
|
66
|
-
$[6] = children;
|
|
67
|
-
$[7] = t2;
|
|
68
|
-
} else {
|
|
69
|
-
t2 = $[7];
|
|
70
|
-
}
|
|
71
|
-
let t3;
|
|
72
|
-
let t4;
|
|
73
|
-
if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
74
|
-
t3 = /* @__PURE__ */ jsxDEV(ScrollBar, {}, void 0, false);
|
|
75
|
-
t4 = /* @__PURE__ */ jsxDEV(ScrollArea$1.Corner, {}, void 0, false);
|
|
76
|
-
$[8] = t3;
|
|
77
|
-
$[9] = t4;
|
|
78
|
-
} else {
|
|
79
|
-
t3 = $[8];
|
|
80
|
-
t4 = $[9];
|
|
81
|
-
}
|
|
82
|
-
let t5;
|
|
83
|
-
if ($[10] !== props || $[11] !== t1 || $[12] !== t2) {
|
|
84
|
-
t5 = /* @__PURE__ */ jsxDEV(ScrollArea$1.Root, {
|
|
85
|
-
"data-slot": "scroll-area",
|
|
86
|
-
className: t1,
|
|
87
|
-
...props,
|
|
88
|
-
children: [t2, t3, t4]
|
|
89
|
-
}, void 0, true);
|
|
90
|
-
$[10] = props;
|
|
91
|
-
$[11] = t1;
|
|
92
|
-
$[12] = t2;
|
|
93
|
-
$[13] = t5;
|
|
94
|
-
} else {
|
|
95
|
-
t5 = $[13];
|
|
96
|
-
}
|
|
97
|
-
return t5;
|
|
98
|
-
}
|
|
99
|
-
function ScrollBar({
|
|
100
|
-
className,
|
|
101
|
-
orientation = "vertical",
|
|
102
|
-
...props
|
|
103
|
-
}) {
|
|
104
|
-
return /* @__PURE__ */ jsxDEV(ScrollArea$1.Scrollbar, {
|
|
105
|
-
"data-slot": "scroll-area-scrollbar",
|
|
106
|
-
"data-orientation": orientation,
|
|
107
|
-
orientation,
|
|
108
|
-
className: cn("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-s data-vertical:border-s-transparent", className),
|
|
109
|
-
...props,
|
|
110
|
-
children: /* @__PURE__ */ jsxDEV(ScrollArea$1.Thumb, {
|
|
111
|
-
"data-slot": "scroll-area-thumb",
|
|
112
|
-
className: "relative flex-1 rounded-md bg-border"
|
|
113
|
-
}, void 0, false)
|
|
114
|
-
}, void 0, false);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
const GET_CAPTURED_MAIL = adminRef(ADMIN_FUNCTIONS.getCapturedMail);
|
|
118
|
-
const CLEAR_CAPTURED_MAIL = adminRef(ADMIN_FUNCTIONS.clearCapturedMail);
|
|
119
|
-
const SEND_TEST_MAIL = adminRef(ADMIN_FUNCTIONS.sendTestMail);
|
|
120
|
-
const LINK_PATTERN = /https?:\/\/[^\s"'<>)]+/i;
|
|
121
|
-
const firstLink = (text) => {
|
|
122
|
-
if (text === void 0) {
|
|
123
|
-
return void 0;
|
|
124
|
-
}
|
|
125
|
-
const match = LINK_PATTERN.exec(text);
|
|
126
|
-
return match?.[0];
|
|
127
|
-
};
|
|
128
|
-
const selectedLink = (mail) => {
|
|
129
|
-
if (mail === void 0) {
|
|
130
|
-
return void 0;
|
|
131
|
-
}
|
|
132
|
-
return firstLink(mail.html) ?? firstLink(mail.text);
|
|
133
|
-
};
|
|
134
|
-
const PREVIEW_CSP = `<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src data:; style-src 'unsafe-inline'; font-src data:">`;
|
|
135
|
-
const withPreviewCsp = (html) => `${PREVIEW_CSP}${html}`;
|
|
136
|
-
const recipientText = (value) => {
|
|
137
|
-
if (value === void 0) {
|
|
138
|
-
return "";
|
|
139
|
-
}
|
|
140
|
-
return Array.isArray(value) ? value.join(", ") : value;
|
|
141
|
-
};
|
|
142
|
-
const MailPanel = ({
|
|
143
|
-
limit = 100
|
|
144
|
-
}) => {
|
|
145
|
-
const client = useLunora();
|
|
146
|
-
const t = useT();
|
|
147
|
-
const [entries, setEntries] = useState([]);
|
|
148
|
-
const [error, setError] = useState(null);
|
|
149
|
-
const [selectedId, setSelectedId] = useState(null);
|
|
150
|
-
const [tab, setTab] = useState("html");
|
|
151
|
-
const [filter, setFilter] = useState("");
|
|
152
|
-
const refresh = async () => {
|
|
153
|
-
setError(null);
|
|
154
|
-
try {
|
|
155
|
-
const next = await client.query(GET_CAPTURED_MAIL, {
|
|
156
|
-
limit
|
|
157
|
-
}, callOptions(""));
|
|
158
|
-
setEntries(next.entries);
|
|
159
|
-
} catch (error_) {
|
|
160
|
-
setEntries([]);
|
|
161
|
-
setError(errorMessage(error_));
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
const clearInbox = async () => {
|
|
165
|
-
setError(null);
|
|
166
|
-
try {
|
|
167
|
-
await client.query(CLEAR_CAPTURED_MAIL, {}, callOptions(""));
|
|
168
|
-
setSelectedId(null);
|
|
169
|
-
await refresh();
|
|
170
|
-
} catch (error__0) {
|
|
171
|
-
setError(errorMessage(error__0));
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
const sendTest = async () => {
|
|
175
|
-
setError(null);
|
|
176
|
-
try {
|
|
177
|
-
await client.query(SEND_TEST_MAIL, {}, callOptions(""));
|
|
178
|
-
await refresh();
|
|
179
|
-
} catch (error__1) {
|
|
180
|
-
setError(errorMessage(error__1));
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
useEffect(() => {
|
|
184
|
-
fireAndForget(refresh());
|
|
185
|
-
}, [refresh]);
|
|
186
|
-
const reload = () => {
|
|
187
|
-
fireAndForget(refresh());
|
|
188
|
-
};
|
|
189
|
-
useAutoRefresh(reload, true);
|
|
190
|
-
const onClear = () => {
|
|
191
|
-
fireAndForget(clearInbox());
|
|
192
|
-
};
|
|
193
|
-
const onSendTest = () => {
|
|
194
|
-
fireAndForget(sendTest());
|
|
195
|
-
};
|
|
196
|
-
const onFilterChange = (event) => {
|
|
197
|
-
setFilter(event.currentTarget.value);
|
|
198
|
-
};
|
|
199
|
-
const onSelectMessage = (event_0) => {
|
|
200
|
-
const {
|
|
201
|
-
id
|
|
202
|
-
} = event_0.currentTarget.dataset;
|
|
203
|
-
if (id !== void 0) {
|
|
204
|
-
setSelectedId(id);
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
const onSelectTab = (event_1) => {
|
|
208
|
-
const next_0 = event_1.currentTarget.dataset["tab"];
|
|
209
|
-
if (next_0 === "headers" || next_0 === "html" || next_0 === "text") {
|
|
210
|
-
setTab(next_0);
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
const tabTitle = (value) => {
|
|
214
|
-
if (value === "html") {
|
|
215
|
-
return t("HTML");
|
|
216
|
-
}
|
|
217
|
-
if (value === "text") {
|
|
218
|
-
return t("Plain text");
|
|
219
|
-
}
|
|
220
|
-
return t("Headers");
|
|
221
|
-
};
|
|
222
|
-
const visible = useMemo(() => {
|
|
223
|
-
const needle = filter.trim().toLowerCase();
|
|
224
|
-
if (needle === "") {
|
|
225
|
-
return entries;
|
|
226
|
-
}
|
|
227
|
-
return entries.filter((entry) => `${entry.subject} ${recipientText(entry.to)}`.toLowerCase().includes(needle));
|
|
228
|
-
}, [entries, filter]);
|
|
229
|
-
const selected = useMemo(() => {
|
|
230
|
-
if (visible.length === 0) {
|
|
231
|
-
return void 0;
|
|
232
|
-
}
|
|
233
|
-
return visible.find((entry_0) => entry_0.id === selectedId) ?? visible[0];
|
|
234
|
-
}, [visible, selectedId]);
|
|
235
|
-
const link = selectedLink(selected);
|
|
236
|
-
const onCopyLink = () => {
|
|
237
|
-
if (link !== void 0) {
|
|
238
|
-
copyToClipboard(link);
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
const onOpenLink = () => {
|
|
242
|
-
if (link !== void 0 && "window" in globalThis) {
|
|
243
|
-
globalThis.window.open(link, "_blank", "noopener");
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
return /* @__PURE__ */ jsxDEV("div", {
|
|
247
|
-
className: "flex flex-col gap-4",
|
|
248
|
-
"data-testid": "mail-panel",
|
|
249
|
-
children: [/* @__PURE__ */ jsxDEV("div", {
|
|
250
|
-
className: "flex flex-wrap items-center gap-2",
|
|
251
|
-
children: [/* @__PURE__ */ jsxDEV(Button, {
|
|
252
|
-
"data-testid": "mail-send-test",
|
|
253
|
-
onClick: onSendTest,
|
|
254
|
-
size: "sm",
|
|
255
|
-
type: "button",
|
|
256
|
-
variant: "outline",
|
|
257
|
-
children: t("Send test")
|
|
258
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(Button, {
|
|
259
|
-
"data-testid": "mail-clear",
|
|
260
|
-
disabled: entries.length === 0,
|
|
261
|
-
onClick: onClear,
|
|
262
|
-
size: "sm",
|
|
263
|
-
type: "button",
|
|
264
|
-
variant: "outline",
|
|
265
|
-
children: t("Clear inbox")
|
|
266
|
-
}, void 0, false), entries.length > 0 && /* @__PURE__ */ jsxDEV(Badge, {
|
|
267
|
-
className: "ml-auto",
|
|
268
|
-
"data-testid": "mail-count",
|
|
269
|
-
variant: "secondary",
|
|
270
|
-
children: t("{count} messages", {
|
|
271
|
-
count: entries.length
|
|
272
|
-
})
|
|
273
|
-
}, void 0, false)]
|
|
274
|
-
}, void 0, true), error !== null && /* @__PURE__ */ jsxDEV("p", {
|
|
275
|
-
className: "text-sm text-destructive",
|
|
276
|
-
"data-testid": "mail-error",
|
|
277
|
-
role: "alert",
|
|
278
|
-
children: error
|
|
279
|
-
}, void 0, false), error === null && entries.length === 0 && /* @__PURE__ */ jsxDEV(EmptyState, {
|
|
280
|
-
description: t("Email your app sends in dev is captured here — nothing is delivered."),
|
|
281
|
-
icon: /* @__PURE__ */ jsxDEV("svg", {
|
|
282
|
-
"aria-hidden": "true",
|
|
283
|
-
fill: "none",
|
|
284
|
-
stroke: "currentColor",
|
|
285
|
-
strokeLinecap: "round",
|
|
286
|
-
strokeLinejoin: "round",
|
|
287
|
-
strokeWidth: 1.6,
|
|
288
|
-
viewBox: "0 0 24 24",
|
|
289
|
-
children: [/* @__PURE__ */ jsxDEV("path", {
|
|
290
|
-
d: "M4 5h16v14H4z"
|
|
291
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("path", {
|
|
292
|
-
d: "m4 6 8 6 8-6"
|
|
293
|
-
}, void 0, false)]
|
|
294
|
-
}, void 0, true),
|
|
295
|
-
testId: "mail-empty",
|
|
296
|
-
title: t("No captured email.")
|
|
297
|
-
}, void 0, false), entries.length > 0 && /* @__PURE__ */ jsxDEV("div", {
|
|
298
|
-
className: "grid grid-cols-1 gap-4 md:grid-cols-[minmax(0,22rem)_1fr]",
|
|
299
|
-
"data-testid": "mail-reader",
|
|
300
|
-
children: [/* @__PURE__ */ jsxDEV("div", {
|
|
301
|
-
className: "flex flex-col gap-2",
|
|
302
|
-
children: [/* @__PURE__ */ jsxDEV(Input, {
|
|
303
|
-
"aria-label": t("Search messages"),
|
|
304
|
-
"data-testid": "mail-search",
|
|
305
|
-
onChange: onFilterChange,
|
|
306
|
-
placeholder: t("Filter messages"),
|
|
307
|
-
type: "search",
|
|
308
|
-
value: filter
|
|
309
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(ScrollArea, {
|
|
310
|
-
className: "max-h-[32rem] rounded-xl border border-border bg-card shadow-xs",
|
|
311
|
-
"data-testid": "mail-list",
|
|
312
|
-
children: /* @__PURE__ */ jsxDEV("ul", {
|
|
313
|
-
className: "divide-y",
|
|
314
|
-
children: visible.map((entry_1) => {
|
|
315
|
-
const isActive = entry_1.id === selected?.id;
|
|
316
|
-
return /* @__PURE__ */ jsxDEV("li", {
|
|
317
|
-
children: /* @__PURE__ */ jsxDEV("button", {
|
|
318
|
-
className: `flex w-full flex-col items-start gap-0.5 px-3 py-2 text-left text-sm hover:bg-muted/60 ${isActive ? "bg-muted" : ""}`,
|
|
319
|
-
"data-active": isActive,
|
|
320
|
-
"data-id": entry_1.id,
|
|
321
|
-
"data-testid": "mail-list-item",
|
|
322
|
-
onClick: onSelectMessage,
|
|
323
|
-
type: "button",
|
|
324
|
-
children: [/* @__PURE__ */ jsxDEV("span", {
|
|
325
|
-
className: "w-full truncate font-medium",
|
|
326
|
-
children: entry_1.subject || t("(no subject)")
|
|
327
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("span", {
|
|
328
|
-
className: "w-full truncate text-xs text-muted-foreground",
|
|
329
|
-
children: recipientText(entry_1.to)
|
|
330
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("span", {
|
|
331
|
-
className: "text-xs text-muted-foreground tabular-nums",
|
|
332
|
-
children: formatTimestamp(entry_1.capturedAt, "—")
|
|
333
|
-
}, void 0, false)]
|
|
334
|
-
}, void 0, true)
|
|
335
|
-
}, entry_1.id, false);
|
|
336
|
-
})
|
|
337
|
-
}, void 0, false)
|
|
338
|
-
}, void 0, false)]
|
|
339
|
-
}, void 0, true), selected !== void 0 && /* @__PURE__ */ jsxDEV("div", {
|
|
340
|
-
className: "flex min-w-0 flex-col gap-3 rounded-xl border border-border bg-card p-4 shadow-xs",
|
|
341
|
-
"data-testid": "mail-detail",
|
|
342
|
-
children: [/* @__PURE__ */ jsxDEV("div", {
|
|
343
|
-
className: "flex flex-col gap-1",
|
|
344
|
-
children: [/* @__PURE__ */ jsxDEV("h2", {
|
|
345
|
-
className: "truncate text-base font-semibold",
|
|
346
|
-
"data-testid": "mail-subject",
|
|
347
|
-
children: selected.subject || t("(no subject)")
|
|
348
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("dl", {
|
|
349
|
-
className: "grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5 text-xs text-muted-foreground",
|
|
350
|
-
children: [/* @__PURE__ */ jsxDEV("dt", {
|
|
351
|
-
children: t("From")
|
|
352
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("dd", {
|
|
353
|
-
className: "truncate font-mono",
|
|
354
|
-
children: selected.from ?? "—"
|
|
355
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("dt", {
|
|
356
|
-
children: t("To")
|
|
357
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("dd", {
|
|
358
|
-
className: "truncate font-mono",
|
|
359
|
-
children: recipientText(selected.to)
|
|
360
|
-
}, void 0, false), selected.cc !== void 0 && selected.cc.length > 0 && /* @__PURE__ */ jsxDEV(Fragment, {
|
|
361
|
-
children: [/* @__PURE__ */ jsxDEV("dt", {
|
|
362
|
-
children: t("Cc")
|
|
363
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("dd", {
|
|
364
|
-
className: "truncate font-mono",
|
|
365
|
-
children: recipientText(selected.cc)
|
|
366
|
-
}, void 0, false)]
|
|
367
|
-
}, void 0, true), /* @__PURE__ */ jsxDEV("dt", {
|
|
368
|
-
children: t("Sent")
|
|
369
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("dd", {
|
|
370
|
-
className: "tabular-nums",
|
|
371
|
-
children: formatTimestamp(selected.capturedAt, "—")
|
|
372
|
-
}, void 0, false)]
|
|
373
|
-
}, void 0, true)]
|
|
374
|
-
}, void 0, true), /* @__PURE__ */ jsxDEV("div", {
|
|
375
|
-
className: "flex flex-wrap items-center gap-2",
|
|
376
|
-
"data-testid": "mail-actions",
|
|
377
|
-
children: [/* @__PURE__ */ jsxDEV(Button, {
|
|
378
|
-
"data-testid": "mail-copy-link",
|
|
379
|
-
disabled: link === void 0,
|
|
380
|
-
onClick: onCopyLink,
|
|
381
|
-
size: "sm",
|
|
382
|
-
type: "button",
|
|
383
|
-
variant: "outline",
|
|
384
|
-
children: t("Copy link")
|
|
385
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(Button, {
|
|
386
|
-
"data-testid": "mail-open-link",
|
|
387
|
-
disabled: link === void 0,
|
|
388
|
-
onClick: onOpenLink,
|
|
389
|
-
size: "sm",
|
|
390
|
-
type: "button",
|
|
391
|
-
variant: "outline",
|
|
392
|
-
children: t("Open in new tab")
|
|
393
|
-
}, void 0, false)]
|
|
394
|
-
}, void 0, true), /* @__PURE__ */ jsxDEV(Separator, {}, void 0, false), /* @__PURE__ */ jsxDEV("div", {
|
|
395
|
-
className: "flex items-center gap-1",
|
|
396
|
-
"data-testid": "mail-tabs",
|
|
397
|
-
role: "tablist",
|
|
398
|
-
children: ["html", "text", "headers"].map((value_0) => /* @__PURE__ */ jsxDEV(Button, {
|
|
399
|
-
"aria-selected": tab === value_0,
|
|
400
|
-
"data-tab": value_0,
|
|
401
|
-
"data-testid": `mail-tab-${value_0}`,
|
|
402
|
-
onClick: onSelectTab,
|
|
403
|
-
role: "tab",
|
|
404
|
-
size: "sm",
|
|
405
|
-
type: "button",
|
|
406
|
-
variant: tab === value_0 ? "secondary" : "ghost",
|
|
407
|
-
children: tabTitle(value_0)
|
|
408
|
-
}, value_0, false))
|
|
409
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("div", {
|
|
410
|
-
className: "min-h-[12rem]",
|
|
411
|
-
children: [tab === "html" && (selected.html === void 0 ? /* @__PURE__ */ jsxDEV("p", {
|
|
412
|
-
className: "text-sm text-muted-foreground",
|
|
413
|
-
children: t("No HTML body.")
|
|
414
|
-
}, void 0, false) : (
|
|
415
|
-
// Fully sandboxed (no `allow-scripts`): captured markup renders but
|
|
416
|
-
// cannot execute in the studio. A restrictive CSP additionally blocks
|
|
417
|
-
// remote resource loads (tracking pixels / `@import`) so opening a
|
|
418
|
-
// captured message can't phone home — only inline styles + data: images.
|
|
419
|
-
/* @__PURE__ */ jsxDEV("iframe", {
|
|
420
|
-
className: "h-[24rem] w-full rounded-md border bg-white",
|
|
421
|
-
"data-testid": "mail-preview-html",
|
|
422
|
-
sandbox: "",
|
|
423
|
-
srcDoc: withPreviewCsp(selected.html),
|
|
424
|
-
title: t("Email preview")
|
|
425
|
-
}, void 0, false)
|
|
426
|
-
)), tab === "text" && (selected.text === void 0 ? /* @__PURE__ */ jsxDEV("p", {
|
|
427
|
-
className: "text-sm text-muted-foreground",
|
|
428
|
-
children: t("No text body.")
|
|
429
|
-
}, void 0, false) : /* @__PURE__ */ jsxDEV("pre", {
|
|
430
|
-
className: "overflow-auto whitespace-pre-wrap rounded-md border bg-muted/30 p-3 text-xs",
|
|
431
|
-
"data-testid": "mail-preview-text",
|
|
432
|
-
children: selected.text
|
|
433
|
-
}, void 0, false)), tab === "headers" && (selected.headers === void 0 || Object.keys(selected.headers).length === 0 ? /* @__PURE__ */ jsxDEV("p", {
|
|
434
|
-
className: "text-sm text-muted-foreground",
|
|
435
|
-
children: t("No headers.")
|
|
436
|
-
}, void 0, false) : /* @__PURE__ */ jsxDEV("pre", {
|
|
437
|
-
className: "overflow-auto whitespace-pre-wrap rounded-md border bg-muted/30 p-3 text-xs",
|
|
438
|
-
"data-testid": "mail-preview-headers",
|
|
439
|
-
children: Object.entries(selected.headers).map(([name, value_1]) => `${name}: ${value_1}`).join("\n")
|
|
440
|
-
}, void 0, false))]
|
|
441
|
-
}, void 0, true)]
|
|
442
|
-
}, void 0, true)]
|
|
443
|
-
}, void 0, true)]
|
|
444
|
-
}, void 0, true);
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
export { MailPanel };
|