@lunora/studio 1.0.0-alpha.16 → 1.0.0-alpha.160
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/README.md +1 -1
- package/dist/index.d.mts +1527 -0
- package/dist/index.d.ts +923 -803
- package/dist/index.mjs +1 -0
- package/dist/mount.d.mts +22 -0
- package/dist/mount.d.ts +11 -10
- package/dist/mount.mjs +1 -0
- package/dist/packem_chunks/AdvisorHealthPanel.mjs +1 -0
- package/dist/packem_chunks/ApiTab.mjs +1 -0
- package/dist/packem_chunks/AuditPanel.mjs +1 -0
- package/dist/packem_chunks/DeploymentHealthPanel.mjs +1 -0
- package/dist/packem_chunks/ExportImportPanel.mjs +3 -0
- package/dist/packem_chunks/FileBrowser.mjs +4 -0
- package/dist/packem_chunks/FunctionRunner.mjs +1 -0
- package/dist/packem_chunks/FunctionStatsPanel.mjs +1 -0
- package/dist/packem_chunks/HealthPanel.mjs +1 -0
- package/dist/packem_chunks/InsightsPanel.mjs +1 -0
- package/dist/packem_chunks/LogsPanel.mjs +1 -0
- package/dist/packem_chunks/MailPanel.mjs +2 -0
- package/dist/packem_chunks/MetricsPanel.mjs +1 -0
- package/dist/packem_chunks/NotificationsPanel.mjs +1 -0
- package/dist/packem_chunks/PitrPanel.mjs +1 -0
- package/dist/packem_chunks/SchemaViewer.mjs +1 -0
- package/dist/packem_chunks/SecurityAdvisorPanel.mjs +1 -0
- package/dist/packem_chunks/SettingsPanel.mjs +1 -0
- package/dist/packem_chunks/SqlEditorPanel.mjs +8 -0
- package/dist/packem_chunks/TableEditor.mjs +1 -0
- package/dist/packem_chunks/agents-panel.mjs +1 -0
- package/dist/packem_chunks/analytics-panel.mjs +1 -0
- package/dist/packem_chunks/auth-audit-panel.mjs +1 -0
- package/dist/packem_chunks/auth-config-panel.mjs +1 -0
- package/dist/packem_chunks/auth-sessions-panel.mjs +1 -0
- package/dist/packem_chunks/containers-panel.mjs +1 -0
- package/dist/packem_chunks/dashboards-panel.mjs +1 -0
- package/dist/packem_chunks/evals-panel.mjs +1 -0
- package/dist/packem_chunks/fanout-panel.mjs +1 -0
- package/dist/packem_chunks/flags-panel.mjs +1 -0
- package/dist/packem_chunks/issues-panel.mjs +1 -0
- package/dist/packem_chunks/kv-browser.mjs +1 -0
- package/dist/packem_chunks/log-drains-panel.mjs +4 -0
- package/dist/packem_chunks/migrations-route.mjs +1 -0
- package/dist/packem_chunks/organizations-panel.mjs +1 -0
- package/dist/packem_chunks/payments-panel.mjs +1 -0
- package/dist/packem_chunks/permissions-panel.mjs +1 -0
- package/dist/packem_chunks/queues-panel.mjs +1 -0
- package/dist/packem_chunks/reactors-panel.mjs +1 -0
- package/dist/packem_chunks/rls-panel.mjs +1 -0
- package/dist/packem_chunks/schedule-panel.mjs +1 -0
- package/dist/packem_chunks/sparkline.mjs +1 -0
- package/dist/packem_chunks/storage-rules-panel.mjs +1 -0
- package/dist/packem_chunks/subscriptions-panel.mjs +1 -0
- package/dist/packem_chunks/sync-client-panel.mjs +1 -0
- package/dist/packem_chunks/traces-panel.mjs +1 -0
- package/dist/packem_chunks/users-panel.mjs +1 -0
- package/dist/packem_chunks/vector-browser.mjs +1 -0
- package/dist/packem_chunks/workflows-panel.mjs +1 -0
- package/dist/packem_shared/ADMIN_FUNCTIONS-B8yyk5BX.mjs +1 -0
- package/dist/packem_shared/ApiDocsPanel-BImfQhyJ.mjs +2 -0
- package/dist/packem_shared/ApiReferencePanel-CigvHhCa.mjs +1 -0
- package/dist/packem_shared/CommandPalette-CSdz9zax.mjs +1 -0
- package/dist/packem_shared/ConfirmButton-DU4p72Er.mjs +1 -0
- package/dist/packem_shared/ConnectionBadge-B_8fcft2.mjs +1 -0
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-DuULO4XM.mjs +1 -0
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-D5YMT0gM.mjs +1 -0
- package/dist/packem_shared/DEFAULT_LOCALE-A1Yg5ORA.mjs +1 -0
- package/dist/packem_shared/DataBrowser-DIbS5LdO.mjs +4 -0
- package/dist/packem_shared/DataFilters-3nbW0uax.mjs +1 -0
- package/dist/packem_shared/ErrorBoundary-BWNF98VF.mjs +1 -0
- package/dist/packem_shared/GlobalDataBrowser-BTbqR6Wc.mjs +1 -0
- package/dist/packem_shared/HomePanel-_BwLI4TQ.mjs +1 -0
- package/dist/packem_shared/MigrationsPanel-BPWzFdxC.mjs +1 -0
- package/dist/packem_shared/OpenRpcReferencePanel-C6CM791D.mjs +1 -0
- package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.mjs +1 -0
- package/dist/packem_shared/ScheduledJobs-B4DPADwk.mjs +1 -0
- package/dist/packem_shared/ShardInput-C6mjgAh4.mjs +1 -0
- package/dist/packem_shared/Studio-CcWQdYrV.mjs +1 -0
- package/dist/packem_shared/StudioApp-fYFz6zZQ.mjs +1 -0
- package/dist/packem_shared/StudioI18nProvider-fVsCSs5L.mjs +1 -0
- package/dist/packem_shared/advisor-view-CPgOok_h.mjs +1 -0
- package/dist/packem_shared/aggregateMetrics-CY05xrYU.mjs +1 -0
- package/dist/packem_shared/alert-PB5W11MM.mjs +1 -0
- package/dist/packem_shared/app.d-BbmO2HA2.d.mts +301 -0
- package/dist/packem_shared/app.d-BbmO2HA2.d.ts +301 -0
- package/dist/packem_shared/badge-r_5B4LHP.mjs +1 -0
- package/dist/packem_shared/bar-chart-BCsEIQoQ.mjs +6 -0
- package/dist/packem_shared/browser-storage-BH1MxLZs.mjs +1 -0
- package/dist/packem_shared/button-q0UYSmrn.mjs +1 -0
- package/dist/packem_shared/card--2hKx4L2.mjs +1 -0
- package/dist/packem_shared/cf-links-CBJ5SywP.mjs +1 -0
- package/dist/packem_shared/checkbox-CnS9cyCz.mjs +1 -0
- package/dist/packem_shared/control-button-BOZ5K-FC.mjs +1 -0
- package/dist/packem_shared/data-grid-DTBAKZlm.mjs +1 -0
- package/dist/packem_shared/data-view-params-qoSTqjAj.mjs +1 -0
- package/dist/packem_shared/dropdown-menu-jLZenfWH.mjs +2 -0
- package/dist/packem_shared/empty-state-D7jEML_T.mjs +1 -0
- package/dist/packem_shared/error-alert-tf5zvSLV.mjs +1 -0
- package/dist/packem_shared/grid-features-Dl7bCGRN.mjs +6 -0
- package/dist/packem_shared/home-panel-DCUKd8Uk.mjs +3 -0
- package/dist/packem_shared/input-CXhxesPC.mjs +1 -0
- package/dist/packem_shared/internal-B6haJbiP.mjs +2 -0
- package/dist/packem_shared/label-DKFzyHq6.mjs +1 -0
- package/dist/packem_shared/live-status-BuJdUZFU.mjs +1 -0
- package/dist/packem_shared/log-fields-SBxKyBug.mjs +1 -0
- package/dist/packem_shared/log-line-BoObzuue.mjs +1 -0
- package/dist/packem_shared/modal-shell-CDztwLnv.mjs +1 -0
- package/dist/packem_shared/operation-console-provider-DoloEvon.mjs +1 -0
- package/dist/packem_shared/recording-client-BXUIyBL4.mjs +1 -0
- package/dist/packem_shared/reference-view-DiikOols.mjs +13 -0
- package/dist/packem_shared/schema-diagram-CDj_69jF.mjs +2 -0
- package/dist/packem_shared/scroll-area-CXCQH7VT.mjs +2 -0
- package/dist/packem_shared/select-DPyS18Vy.mjs +2 -0
- package/dist/packem_shared/shard-history-CaO3C4KQ.mjs +1 -0
- package/dist/packem_shared/shortcuts-B9gDaXmw.mjs +1 -0
- package/dist/packem_shared/skeleton-DX1gfixl.mjs +1 -0
- package/dist/packem_shared/sparkline-B_sPPO_8.mjs +1 -0
- package/dist/packem_shared/sql-result-table-C5y0jwaK.mjs +1 -0
- package/dist/packem_shared/stat-card-D0Fe04cX.mjs +1 -0
- package/dist/packem_shared/storage-tier-C2mKwYRj.mjs +1 -0
- package/dist/packem_shared/studio-OqNyRY1N.mjs +2 -0
- package/dist/packem_shared/table-D0SBiDu-.mjs +2 -0
- package/dist/packem_shared/table-list-sidebar-DHG1UJC4.mjs +1 -0
- package/dist/packem_shared/textarea--40GKAyz.mjs +1 -0
- package/dist/packem_shared/trace-handoff-BV3EWqy_.mjs +1 -0
- package/dist/packem_shared/use-admin-query-BKXiqLci.mjs +1 -0
- package/dist/packem_shared/use-async-submit-BTr3w2-K.mjs +1 -0
- package/dist/packem_shared/use-auth-config-CuM3eJZz.mjs +1 -0
- package/dist/packem_shared/use-open-trace-BCW0c9qq.mjs +1 -0
- package/dist/packem_shared/use-shard-key-BsP3o5wT.mjs +1 -0
- package/dist/packem_shared/use-sql-assistant-BhIMDQHV.mjs +1 -0
- package/dist/packem_shared/useDebounced-DVeQ5-oW.mjs +1 -0
- package/dist/packem_shared/utils-bhneXptQ.mjs +1 -0
- package/dist/packem_shared/virtual-rect-D_j7aLxX.mjs +1 -0
- package/dist/packem_shared/wire-codec-Bk4XZGE4.mjs +1 -0
- package/dist/standalone/chunk-24WQBQWW.js +4 -0
- package/dist/standalone/chunk-25NFR6EB.js +1 -0
- package/dist/standalone/chunk-2ES4GR4C.js +1 -0
- package/dist/standalone/chunk-2LVK7QRD.js +1 -0
- package/dist/standalone/chunk-2XRSS2M6.js +1 -0
- package/dist/standalone/chunk-35DM4JJG.js +1 -0
- package/dist/standalone/chunk-3LTNH237.js +15 -0
- package/dist/standalone/chunk-46ZJ3TM4.js +2 -0
- package/dist/standalone/chunk-4GTO7FL5.js +1 -0
- package/dist/standalone/chunk-4L4WTGN5.js +1 -0
- package/dist/standalone/chunk-4ZEL6BYL.js +1 -0
- package/dist/standalone/chunk-5EBAAJ4D.js +1 -0
- package/dist/standalone/chunk-5GFSKIB2.js +1 -0
- package/dist/standalone/chunk-5JDWLCSH.js +1 -0
- package/dist/standalone/chunk-5QKJ5G6Z.js +1 -0
- package/dist/standalone/chunk-5QTPE32B.js +1 -0
- package/dist/standalone/chunk-5TB4AS52.js +1 -0
- package/dist/standalone/chunk-5WJXVZMZ.js +1 -0
- package/dist/standalone/chunk-66UGPQVC.js +1 -0
- package/dist/standalone/chunk-6L4BGYXK.js +1 -0
- package/dist/standalone/chunk-6MSV6AGL.js +1 -0
- package/dist/standalone/chunk-7DJSJJBN.js +1 -0
- package/dist/standalone/chunk-7NLTT26I.js +1 -0
- package/dist/standalone/chunk-7RIRJD2P.js +1 -0
- package/dist/standalone/chunk-AE7ASECR.js +1 -0
- package/dist/standalone/chunk-AOOJS3RO.js +1 -0
- package/dist/standalone/chunk-B7XC7OEM.js +1 -0
- package/dist/standalone/chunk-BCBNKE7J.js +11 -0
- package/dist/standalone/chunk-BOTGXX4H.js +1 -0
- package/dist/standalone/chunk-C3TOZ4LG.js +1 -0
- package/dist/standalone/chunk-CAKOSEB7.js +1 -0
- package/dist/standalone/chunk-CSUROWL2.js +1 -0
- package/dist/standalone/chunk-D27D4UUI.js +1 -0
- package/dist/standalone/chunk-DX6FAHR2.js +1 -0
- package/dist/standalone/chunk-EA2JKR5D.js +1 -0
- package/dist/standalone/chunk-EBWXFG4H.js +1 -0
- package/dist/standalone/chunk-EHSU2WDS.js +1 -0
- package/dist/standalone/chunk-ESR2SZ36.js +1 -0
- package/dist/standalone/chunk-EXTJNNOY.js +3 -0
- package/dist/standalone/chunk-F7UC63UN.js +1 -0
- package/dist/standalone/chunk-FKVZRPV5.js +1 -0
- package/dist/standalone/chunk-FO26ZU7E.js +1 -0
- package/dist/standalone/chunk-FODLDLE2.js +19 -0
- package/dist/standalone/chunk-FS7BPB4J.js +1 -0
- package/dist/standalone/chunk-FSRSK4LY.js +1 -0
- package/dist/standalone/chunk-FZ4DKTWL.js +1 -0
- package/dist/standalone/chunk-FZJD2AW6.js +1 -0
- package/dist/standalone/chunk-G57SBM72.js +1 -0
- package/dist/standalone/chunk-H3SID7AN.js +1 -0
- package/dist/standalone/chunk-HEAQVSNS.js +1 -0
- package/dist/standalone/chunk-HF5NNUYU.js +1 -0
- package/dist/standalone/chunk-HQTWP46Z.js +1 -0
- package/dist/standalone/chunk-I2LRZGW7.js +7 -0
- package/dist/standalone/chunk-I52I2DJG.js +1 -0
- package/dist/standalone/chunk-I5FUZTVN.js +1 -0
- package/dist/standalone/chunk-IABM4BFJ.js +1 -0
- package/dist/standalone/chunk-IJHCFEYG.js +1 -0
- package/dist/standalone/chunk-IMOHEGMV.js +1 -0
- package/dist/standalone/chunk-INWAISDG.js +6 -0
- package/dist/standalone/chunk-JHP7UDU3.js +1 -0
- package/dist/standalone/chunk-JVUZEYKQ.js +1 -0
- package/dist/standalone/chunk-K7AJEMKE.js +1 -0
- package/dist/standalone/chunk-KAJ53T5A.js +1 -0
- package/dist/standalone/chunk-KMXRGAJN.js +8 -0
- package/dist/standalone/chunk-LFGT7SHV.js +1 -0
- package/dist/standalone/chunk-LKDXWSK3.js +1 -0
- package/dist/standalone/chunk-LW4TJA4W.js +1 -0
- package/dist/standalone/chunk-M2R7QUP7.js +1 -0
- package/dist/standalone/chunk-MNAASONZ.js +1 -0
- package/dist/standalone/chunk-N2KEHJFT.js +1 -0
- package/dist/standalone/chunk-N4T2MINL.js +1 -0
- package/dist/standalone/chunk-NCCAMFB6.js +1 -0
- package/dist/standalone/chunk-NPERN4YF.js +1 -0
- package/dist/standalone/chunk-NT2U7JJI.js +1 -0
- package/dist/standalone/chunk-NZIKF3FN.js +1 -0
- package/dist/standalone/chunk-OBRWA7NJ.js +1 -0
- package/dist/standalone/chunk-OGUKYRFM.js +1 -0
- package/dist/standalone/chunk-OKG3HWSJ.js +1 -0
- package/dist/standalone/chunk-PDTRYBNK.js +1 -0
- package/dist/standalone/chunk-PO6QDP32.js +1 -0
- package/dist/standalone/chunk-PQTHMQHP.js +1 -0
- package/dist/standalone/chunk-PYT4RZJH.js +1 -0
- package/dist/standalone/chunk-Q3WZBID4.js +1 -0
- package/dist/standalone/chunk-Q4CAKBWN.js +1 -0
- package/dist/standalone/chunk-QJ7AIK4F.js +14 -0
- package/dist/standalone/chunk-QKEJLVC5.js +1 -0
- package/dist/standalone/chunk-R3Y3RWZE.js +1 -0
- package/dist/standalone/chunk-RCL6OSSI.js +1 -0
- package/dist/standalone/chunk-RJ52BWWR.js +1 -0
- package/dist/standalone/chunk-RLLKECZT.js +1 -0
- package/dist/standalone/chunk-RPQL45FL.js +1 -0
- package/dist/standalone/chunk-S2DMXDVV.js +3 -0
- package/dist/standalone/chunk-S3CRZLGS.js +1 -0
- package/dist/standalone/chunk-SB35BJ7A.js +1 -0
- package/dist/standalone/chunk-SU737V7V.js +1 -0
- package/dist/standalone/chunk-SUDJTC4S.js +1 -0
- package/dist/standalone/chunk-T7PDUIXF.js +1 -0
- package/dist/standalone/chunk-TC7TSIPJ.js +1 -0
- package/dist/standalone/chunk-TGHH7ZFA.js +1 -0
- package/dist/standalone/chunk-TIUMFAN2.js +1 -0
- package/dist/standalone/chunk-TJRQUJFS.js +1 -0
- package/dist/standalone/chunk-TWTNWOJU.js +1 -0
- package/dist/standalone/chunk-U5JDESCI.js +1 -0
- package/dist/standalone/chunk-UCDF4BKD.js +1 -0
- package/dist/standalone/chunk-UDCVU3Z5.js +1 -0
- package/dist/standalone/chunk-UK32ZCIK.js +8 -0
- package/dist/standalone/chunk-ULIQFBZU.js +1 -0
- package/dist/standalone/chunk-UVB3R7NI.js +59 -0
- package/dist/standalone/chunk-UYEZR3BI.js +1 -0
- package/dist/standalone/chunk-VDTEOMR4.js +2 -0
- package/dist/standalone/chunk-VVOVVU53.js +1 -0
- package/dist/standalone/chunk-WQYWA7U6.js +1 -0
- package/dist/standalone/chunk-WUWBZPUK.js +1 -0
- package/dist/standalone/chunk-XD6I4DFM.js +1 -0
- package/dist/standalone/chunk-XZMOZFE6.js +1 -0
- package/dist/standalone/chunk-Y6CXU7T4.js +1 -0
- package/dist/standalone/chunk-YAGZIUBA.js +1 -0
- package/dist/standalone/chunk-YAUA3WS7.js +1 -0
- package/dist/standalone/chunk-YKXDMIHQ.js +1 -0
- package/dist/standalone/chunk-YOB2X3FZ.js +1 -0
- package/dist/standalone/chunk-YTWAOTZD.js +1 -0
- package/dist/standalone/chunk-YVYWT5AX.js +1 -0
- package/dist/standalone/chunk-YYIWZFCC.js +1 -0
- package/dist/standalone/chunk-ZLPC3XZF.js +4 -0
- package/dist/standalone/studio.js +9 -378
- package/dist/styles.css +2 -2
- package/package.json +21 -18
- package/dist/index.js +0 -41
- package/dist/mount.js +0 -26
- package/dist/packem_shared/ADMIN_FUNCTIONS-CZJCZ4c7.js +0 -47
- package/dist/packem_shared/ApiDocsPanel-yEz0fiof.js +0 -842
- package/dist/packem_shared/ApiReferencePanel-1vubqG5s.js +0 -229
- package/dist/packem_shared/ApiTab-DdubReQI.js +0 -251
- package/dist/packem_shared/AuditPanel-CE5ofjCc.js +0 -200
- 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-DpL8U-Nf.js +0 -4475
- package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
- package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
- package/dist/packem_shared/ExportImportPanel-ChsSUCYZ.js +0 -197
- package/dist/packem_shared/FileBrowser-DsRBnVhZ.js +0 -2932
- package/dist/packem_shared/FunctionRunner-D4cZ6fuA.js +0 -343
- package/dist/packem_shared/FunctionStatsPanel-BVelWgNv.js +0 -375
- package/dist/packem_shared/GlobalDataBrowser-3X9uRfdO.js +0 -289
- package/dist/packem_shared/HealthPanel-CxUVKfvo.js +0 -648
- package/dist/packem_shared/HomePanel-tfqpZxuu.js +0 -1334
- package/dist/packem_shared/InsightsPanel-DNg3K9XN.js +0 -461
- package/dist/packem_shared/LogsPanel-B4LoSRj0.js +0 -827
- package/dist/packem_shared/MailPanel-CcpdyWYs.js +0 -440
- package/dist/packem_shared/MetricsPanel-CxoyWbNb.js +0 -1611
- package/dist/packem_shared/MigrationsPanel-DGwJGWDA.js +0 -239
- package/dist/packem_shared/OpenRpcReferencePanel-vbcYbv3V.js +0 -191
- package/dist/packem_shared/PitrPanel-CKUzyyHi.js +0 -252
- package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
- package/dist/packem_shared/ScheduledJobs-BWNwIN3I.js +0 -262
- package/dist/packem_shared/SchemaViewer-RclXFo9Q.js +0 -2512
- package/dist/packem_shared/SecurityAdvisorPanel-Dqql1Z5O.js +0 -92
- package/dist/packem_shared/SettingsPanel-D5iTY0YE.js +0 -390
- package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
- package/dist/packem_shared/SqlEditorPanel-Dj-In-B3.js +0 -13
- package/dist/packem_shared/Studio-VWvKNOw4.js +0 -33
- package/dist/packem_shared/StudioApp-BhQ6T2pn.js +0 -657
- package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
- package/dist/packem_shared/TableEditor-BY8bTpCl.js +0 -11
- 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-BVJFkXyj.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-CMdxstu5.js +0 -2562
- package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
- package/dist/packem_shared/studio-D8ry3tJR.js +0 -11043
- package/dist/packem_shared/table-_RzNvy3R.js +0 -246
- package/dist/packem_shared/table-editor-CWx68ZCg.js +0 -407
- 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-admin-query-BkbdNFNz.js +0 -105
- 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,249 +0,0 @@
|
|
|
1
|
-
import { c } from 'react/compiler-runtime';
|
|
2
|
-
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
3
|
-
|
|
4
|
-
const OPERATORS = [{
|
|
5
|
-
label: "=",
|
|
6
|
-
value: "eq"
|
|
7
|
-
}, {
|
|
8
|
-
label: "≠",
|
|
9
|
-
value: "ne"
|
|
10
|
-
}, {
|
|
11
|
-
label: "<",
|
|
12
|
-
value: "lt"
|
|
13
|
-
}, {
|
|
14
|
-
label: "≤",
|
|
15
|
-
value: "lte"
|
|
16
|
-
}, {
|
|
17
|
-
label: ">",
|
|
18
|
-
value: "gt"
|
|
19
|
-
}, {
|
|
20
|
-
label: "≥",
|
|
21
|
-
value: "gte"
|
|
22
|
-
}, {
|
|
23
|
-
label: "contains",
|
|
24
|
-
value: "contains"
|
|
25
|
-
}];
|
|
26
|
-
const toFilterClauses = (filters) => filters.filter((filter) => filter.column !== "").map((filter) => {
|
|
27
|
-
const numeric = filter.operator !== "contains" && filter.value.trim() !== "" && !Number.isNaN(Number(filter.value));
|
|
28
|
-
return {
|
|
29
|
-
column: filter.column,
|
|
30
|
-
operator: filter.operator,
|
|
31
|
-
value: numeric ? Number(filter.value) : filter.value
|
|
32
|
-
};
|
|
33
|
-
});
|
|
34
|
-
const DataFilters = (t0) => {
|
|
35
|
-
const $ = c(40);
|
|
36
|
-
const {
|
|
37
|
-
columns,
|
|
38
|
-
filters,
|
|
39
|
-
onFiltersChange,
|
|
40
|
-
onSearchChange,
|
|
41
|
-
search
|
|
42
|
-
} = t0;
|
|
43
|
-
let t1;
|
|
44
|
-
if ($[0] !== columns[0] || $[1] !== filters || $[2] !== onFiltersChange) {
|
|
45
|
-
t1 = () => {
|
|
46
|
-
onFiltersChange([...filters, {
|
|
47
|
-
column: columns[0] ?? "",
|
|
48
|
-
operator: "eq",
|
|
49
|
-
value: ""
|
|
50
|
-
}]);
|
|
51
|
-
};
|
|
52
|
-
$[0] = columns[0];
|
|
53
|
-
$[1] = filters;
|
|
54
|
-
$[2] = onFiltersChange;
|
|
55
|
-
$[3] = t1;
|
|
56
|
-
} else {
|
|
57
|
-
t1 = $[3];
|
|
58
|
-
}
|
|
59
|
-
const addFilter = t1;
|
|
60
|
-
let t2;
|
|
61
|
-
if ($[4] !== filters || $[5] !== onFiltersChange) {
|
|
62
|
-
t2 = (event) => {
|
|
63
|
-
const index = Number(event.currentTarget.dataset.index);
|
|
64
|
-
onFiltersChange(filters.filter((_, position) => position !== index));
|
|
65
|
-
};
|
|
66
|
-
$[4] = filters;
|
|
67
|
-
$[5] = onFiltersChange;
|
|
68
|
-
$[6] = t2;
|
|
69
|
-
} else {
|
|
70
|
-
t2 = $[6];
|
|
71
|
-
}
|
|
72
|
-
const removeFilter = t2;
|
|
73
|
-
let t3;
|
|
74
|
-
if ($[7] !== filters || $[8] !== onFiltersChange) {
|
|
75
|
-
t3 = (event_0) => {
|
|
76
|
-
const index_0 = Number(event_0.currentTarget.dataset.index);
|
|
77
|
-
const next = event_0.currentTarget.value;
|
|
78
|
-
onFiltersChange(filters.map((filter, position_0) => position_0 === index_0 ? {
|
|
79
|
-
...filter,
|
|
80
|
-
column: next
|
|
81
|
-
} : filter));
|
|
82
|
-
};
|
|
83
|
-
$[7] = filters;
|
|
84
|
-
$[8] = onFiltersChange;
|
|
85
|
-
$[9] = t3;
|
|
86
|
-
} else {
|
|
87
|
-
t3 = $[9];
|
|
88
|
-
}
|
|
89
|
-
const changeColumn = t3;
|
|
90
|
-
let t4;
|
|
91
|
-
if ($[10] !== filters || $[11] !== onFiltersChange) {
|
|
92
|
-
t4 = (event_1) => {
|
|
93
|
-
const index_1 = Number(event_1.currentTarget.dataset.index);
|
|
94
|
-
const next_0 = event_1.currentTarget.value;
|
|
95
|
-
onFiltersChange(filters.map((filter_0, position_1) => position_1 === index_1 ? {
|
|
96
|
-
...filter_0,
|
|
97
|
-
operator: next_0
|
|
98
|
-
} : filter_0));
|
|
99
|
-
};
|
|
100
|
-
$[10] = filters;
|
|
101
|
-
$[11] = onFiltersChange;
|
|
102
|
-
$[12] = t4;
|
|
103
|
-
} else {
|
|
104
|
-
t4 = $[12];
|
|
105
|
-
}
|
|
106
|
-
const changeOperator = t4;
|
|
107
|
-
let t5;
|
|
108
|
-
if ($[13] !== filters || $[14] !== onFiltersChange) {
|
|
109
|
-
t5 = (event_2) => {
|
|
110
|
-
const index_2 = Number(event_2.currentTarget.dataset.index);
|
|
111
|
-
const next_1 = event_2.currentTarget.value;
|
|
112
|
-
onFiltersChange(filters.map((filter_1, position_2) => position_2 === index_2 ? {
|
|
113
|
-
...filter_1,
|
|
114
|
-
value: next_1
|
|
115
|
-
} : filter_1));
|
|
116
|
-
};
|
|
117
|
-
$[13] = filters;
|
|
118
|
-
$[14] = onFiltersChange;
|
|
119
|
-
$[15] = t5;
|
|
120
|
-
} else {
|
|
121
|
-
t5 = $[15];
|
|
122
|
-
}
|
|
123
|
-
const changeValue = t5;
|
|
124
|
-
let t6;
|
|
125
|
-
if ($[16] !== onSearchChange || $[17] !== search) {
|
|
126
|
-
t6 = /* @__PURE__ */ jsxDEV("input", {
|
|
127
|
-
"aria-label": "Search rows",
|
|
128
|
-
"data-testid": "db-filter",
|
|
129
|
-
onChange: onSearchChange,
|
|
130
|
-
placeholder: "search table…",
|
|
131
|
-
value: search
|
|
132
|
-
}, void 0, false);
|
|
133
|
-
$[16] = onSearchChange;
|
|
134
|
-
$[17] = search;
|
|
135
|
-
$[18] = t6;
|
|
136
|
-
} else {
|
|
137
|
-
t6 = $[18];
|
|
138
|
-
}
|
|
139
|
-
let t7;
|
|
140
|
-
if ($[19] !== addFilter) {
|
|
141
|
-
t7 = /* @__PURE__ */ jsxDEV("button", {
|
|
142
|
-
"data-testid": "db-add-filter",
|
|
143
|
-
onClick: addFilter,
|
|
144
|
-
type: "button",
|
|
145
|
-
children: "Add filter"
|
|
146
|
-
}, void 0, false);
|
|
147
|
-
$[19] = addFilter;
|
|
148
|
-
$[20] = t7;
|
|
149
|
-
} else {
|
|
150
|
-
t7 = $[20];
|
|
151
|
-
}
|
|
152
|
-
let t8;
|
|
153
|
-
if ($[21] !== t6 || $[22] !== t7) {
|
|
154
|
-
t8 = /* @__PURE__ */ jsxDEV("div", {
|
|
155
|
-
className: "flex flex-wrap items-center gap-1.5",
|
|
156
|
-
children: [t6, t7]
|
|
157
|
-
}, void 0, true);
|
|
158
|
-
$[21] = t6;
|
|
159
|
-
$[22] = t7;
|
|
160
|
-
$[23] = t8;
|
|
161
|
-
} else {
|
|
162
|
-
t8 = $[23];
|
|
163
|
-
}
|
|
164
|
-
let t9;
|
|
165
|
-
if ($[24] !== changeColumn || $[25] !== changeOperator || $[26] !== changeValue || $[27] !== columns || $[28] !== filters || $[29] !== removeFilter) {
|
|
166
|
-
let t102;
|
|
167
|
-
if ($[31] !== changeColumn || $[32] !== changeOperator || $[33] !== changeValue || $[34] !== columns || $[35] !== removeFilter) {
|
|
168
|
-
t102 = (filter_2, index_3) => /* @__PURE__ */ jsxDEV("div", {
|
|
169
|
-
className: "flex flex-wrap items-center gap-1.5",
|
|
170
|
-
"data-testid": "db-filter-row",
|
|
171
|
-
children: [/* @__PURE__ */ jsxDEV("select", {
|
|
172
|
-
"aria-label": "Filter column",
|
|
173
|
-
"data-index": index_3,
|
|
174
|
-
"data-testid": "db-filter-column",
|
|
175
|
-
onChange: changeColumn,
|
|
176
|
-
value: filter_2.column,
|
|
177
|
-
children: columns.map(_temp)
|
|
178
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("select", {
|
|
179
|
-
"aria-label": "Filter operator",
|
|
180
|
-
"data-index": index_3,
|
|
181
|
-
"data-testid": "db-filter-operator",
|
|
182
|
-
onChange: changeOperator,
|
|
183
|
-
value: filter_2.operator,
|
|
184
|
-
children: OPERATORS.map(_temp2)
|
|
185
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("input", {
|
|
186
|
-
"aria-label": "Filter value",
|
|
187
|
-
"data-index": index_3,
|
|
188
|
-
"data-testid": "db-filter-value",
|
|
189
|
-
onChange: changeValue,
|
|
190
|
-
placeholder: "value",
|
|
191
|
-
value: filter_2.value
|
|
192
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("button", {
|
|
193
|
-
"aria-label": "Remove filter",
|
|
194
|
-
"data-index": index_3,
|
|
195
|
-
"data-testid": "db-filter-remove",
|
|
196
|
-
onClick: removeFilter,
|
|
197
|
-
type: "button",
|
|
198
|
-
children: "✕"
|
|
199
|
-
}, void 0, false)]
|
|
200
|
-
}, index_3, true);
|
|
201
|
-
$[31] = changeColumn;
|
|
202
|
-
$[32] = changeOperator;
|
|
203
|
-
$[33] = changeValue;
|
|
204
|
-
$[34] = columns;
|
|
205
|
-
$[35] = removeFilter;
|
|
206
|
-
$[36] = t102;
|
|
207
|
-
} else {
|
|
208
|
-
t102 = $[36];
|
|
209
|
-
}
|
|
210
|
-
t9 = filters.map(t102);
|
|
211
|
-
$[24] = changeColumn;
|
|
212
|
-
$[25] = changeOperator;
|
|
213
|
-
$[26] = changeValue;
|
|
214
|
-
$[27] = columns;
|
|
215
|
-
$[28] = filters;
|
|
216
|
-
$[29] = removeFilter;
|
|
217
|
-
$[30] = t9;
|
|
218
|
-
} else {
|
|
219
|
-
t9 = $[30];
|
|
220
|
-
}
|
|
221
|
-
let t10;
|
|
222
|
-
if ($[37] !== t8 || $[38] !== t9) {
|
|
223
|
-
t10 = /* @__PURE__ */ jsxDEV("div", {
|
|
224
|
-
className: "flex flex-col gap-1.5",
|
|
225
|
-
"data-testid": "db-filters",
|
|
226
|
-
children: [t8, t9]
|
|
227
|
-
}, void 0, true);
|
|
228
|
-
$[37] = t8;
|
|
229
|
-
$[38] = t9;
|
|
230
|
-
$[39] = t10;
|
|
231
|
-
} else {
|
|
232
|
-
t10 = $[39];
|
|
233
|
-
}
|
|
234
|
-
return t10;
|
|
235
|
-
};
|
|
236
|
-
function _temp(column) {
|
|
237
|
-
return /* @__PURE__ */ jsxDEV("option", {
|
|
238
|
-
value: column,
|
|
239
|
-
children: column
|
|
240
|
-
}, column, false);
|
|
241
|
-
}
|
|
242
|
-
function _temp2(operator) {
|
|
243
|
-
return /* @__PURE__ */ jsxDEV("option", {
|
|
244
|
-
value: operator.value,
|
|
245
|
-
children: operator.label
|
|
246
|
-
}, operator.value, false);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
export { DataFilters, toFilterClauses };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import { jsxDEV, Fragment } from 'react/jsx-dev-runtime';
|
|
3
|
-
|
|
4
|
-
const CONTAINER_STYLE = {
|
|
5
|
-
border: "1px solid var(--destructive)",
|
|
6
|
-
color: "var(--destructive)",
|
|
7
|
-
padding: 12
|
|
8
|
-
};
|
|
9
|
-
const MESSAGE_STYLE = {
|
|
10
|
-
overflow: "auto",
|
|
11
|
-
whiteSpace: "pre-wrap"
|
|
12
|
-
};
|
|
13
|
-
class ErrorBoundary extends Component {
|
|
14
|
-
static getDerivedStateFromError(error) {
|
|
15
|
-
return {
|
|
16
|
-
error
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
state = {
|
|
20
|
-
error: null
|
|
21
|
-
};
|
|
22
|
-
componentDidCatch(error, info) {
|
|
23
|
-
console.error("[lunora-studio] panel error", error, info.componentStack);
|
|
24
|
-
}
|
|
25
|
-
reset = () => {
|
|
26
|
-
this.setState({
|
|
27
|
-
error: null
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
render() {
|
|
31
|
-
const {
|
|
32
|
-
children,
|
|
33
|
-
fallbackTitle,
|
|
34
|
-
label,
|
|
35
|
-
retryLabel
|
|
36
|
-
} = this.props;
|
|
37
|
-
const {
|
|
38
|
-
error
|
|
39
|
-
} = this.state;
|
|
40
|
-
if (error === null) {
|
|
41
|
-
return /* @__PURE__ */ jsxDEV(Fragment, {
|
|
42
|
-
children
|
|
43
|
-
}, void 0, false);
|
|
44
|
-
}
|
|
45
|
-
const title = fallbackTitle ?? (label === void 0 ? "Something went wrong" : `${label} failed`);
|
|
46
|
-
return /* @__PURE__ */ jsxDEV("div", {
|
|
47
|
-
"data-testid": "dash-error-boundary",
|
|
48
|
-
role: "alert",
|
|
49
|
-
style: CONTAINER_STYLE,
|
|
50
|
-
children: [/* @__PURE__ */ jsxDEV("strong", {
|
|
51
|
-
children: title
|
|
52
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("pre", {
|
|
53
|
-
"data-testid": "dash-error-message",
|
|
54
|
-
style: MESSAGE_STYLE,
|
|
55
|
-
children: error.message
|
|
56
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("button", {
|
|
57
|
-
"data-testid": "dash-error-retry",
|
|
58
|
-
onClick: this.reset,
|
|
59
|
-
type: "button",
|
|
60
|
-
children: retryLabel ?? "Try again"
|
|
61
|
-
}, void 0, false)]
|
|
62
|
-
}, void 0, true);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export { ErrorBoundary };
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import { useLunora } from '@lunora/react';
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { ConfirmButton } from './ConfirmButton-C2eVi2Qv.js';
|
|
4
|
-
import { ShardInput } from './ShardInput-gx_DZXXn.js';
|
|
5
|
-
import { B as Button } from './button-BhsN2uZH.js';
|
|
6
|
-
import { C as Card, a as CardContent } from './card-DURq3ElK.js';
|
|
7
|
-
import { T as Textarea } from './textarea-D3gaCU_-.js';
|
|
8
|
-
import { a as useInvalidateAdmin } from './use-admin-query-BkbdNFNz.js';
|
|
9
|
-
import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
10
|
-
import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-CZJCZ4c7.js';
|
|
11
|
-
import { f as fireAndForget, c as callOptions, e as errorMessage, a as adminRef } from './internal-rXJEAhXS.js';
|
|
12
|
-
import { r as recordShard } from './shard-history-DyebH1R5.js';
|
|
13
|
-
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
14
|
-
|
|
15
|
-
const EXPORT_SHARD = adminRef(ADMIN_FUNCTIONS.exportShard);
|
|
16
|
-
const IMPORT_SHARD = adminRef(ADMIN_FUNCTIONS.importShard);
|
|
17
|
-
const toNdjson = (rows) => rows.map((row) => JSON.stringify(row)).join("\n");
|
|
18
|
-
const parseNdjson = (text) => {
|
|
19
|
-
const rows = [];
|
|
20
|
-
const lines = text.split("\n");
|
|
21
|
-
for (const [index, rawLine] of lines.entries()) {
|
|
22
|
-
const line = rawLine.trim();
|
|
23
|
-
if (line === "") {
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
const parsed = JSON.parse(line);
|
|
27
|
-
if (typeof parsed !== "object" || parsed === null) {
|
|
28
|
-
throw new Error(`line ${(index + 1).toString()}: expected a { table, doc } object`);
|
|
29
|
-
}
|
|
30
|
-
const row = parsed;
|
|
31
|
-
if (typeof row.table !== "string" || typeof row.doc !== "object" || row.doc === null || Array.isArray(row.doc)) {
|
|
32
|
-
throw new Error(`line ${(index + 1).toString()}: expected a { table, doc } object`);
|
|
33
|
-
}
|
|
34
|
-
rows.push(row);
|
|
35
|
-
}
|
|
36
|
-
return rows;
|
|
37
|
-
};
|
|
38
|
-
const ExportImportPanel = ({
|
|
39
|
-
initialShardKey
|
|
40
|
-
}) => {
|
|
41
|
-
const client = useLunora();
|
|
42
|
-
const invalidateAdmin = useInvalidateAdmin();
|
|
43
|
-
const t = useT();
|
|
44
|
-
const [shardKey, setShardKey] = useState(initialShardKey ?? "");
|
|
45
|
-
const [ndjson, setNdjson] = useState("");
|
|
46
|
-
const [busy, setBusy] = useState(false);
|
|
47
|
-
const [error, setError] = useState(null);
|
|
48
|
-
const [importResult, setImportResult] = useState(null);
|
|
49
|
-
const [exportCount, setExportCount] = useState(null);
|
|
50
|
-
const exportShard = async () => {
|
|
51
|
-
setBusy(true);
|
|
52
|
-
setError(null);
|
|
53
|
-
setImportResult(null);
|
|
54
|
-
try {
|
|
55
|
-
const result = await client.query(EXPORT_SHARD, {}, callOptions(shardKey));
|
|
56
|
-
recordShard(shardKey);
|
|
57
|
-
setNdjson(toNdjson(result.rows));
|
|
58
|
-
setExportCount(result.rows.length);
|
|
59
|
-
} catch (error_) {
|
|
60
|
-
setError(errorMessage(error_));
|
|
61
|
-
} finally {
|
|
62
|
-
setBusy(false);
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
const importShard = async () => {
|
|
66
|
-
setBusy(true);
|
|
67
|
-
setError(null);
|
|
68
|
-
setImportResult(null);
|
|
69
|
-
setExportCount(null);
|
|
70
|
-
let rows;
|
|
71
|
-
try {
|
|
72
|
-
rows = parseNdjson(ndjson);
|
|
73
|
-
} catch (error__0) {
|
|
74
|
-
setError(t("Invalid NDJSON: {message}", {
|
|
75
|
-
message: errorMessage(error__0)
|
|
76
|
-
}));
|
|
77
|
-
setBusy(false);
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
try {
|
|
81
|
-
const result_0 = await client.query(IMPORT_SHARD, {
|
|
82
|
-
rows
|
|
83
|
-
}, callOptions(shardKey));
|
|
84
|
-
recordShard(shardKey);
|
|
85
|
-
setImportResult(result_0);
|
|
86
|
-
invalidateAdmin(ADMIN_FUNCTIONS.readTablePage);
|
|
87
|
-
invalidateAdmin(ADMIN_FUNCTIONS.listTables);
|
|
88
|
-
} catch (error__1) {
|
|
89
|
-
setError(errorMessage(error__1));
|
|
90
|
-
} finally {
|
|
91
|
-
setBusy(false);
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
const insertedTotal = importResult === null ? 0 : Object.values(importResult.inserted).reduce((sum, count) => sum + count, 0);
|
|
95
|
-
const runExport = () => {
|
|
96
|
-
fireAndForget(exportShard());
|
|
97
|
-
};
|
|
98
|
-
const runImport = () => {
|
|
99
|
-
fireAndForget(importShard());
|
|
100
|
-
};
|
|
101
|
-
const onNdjsonChange = (event) => {
|
|
102
|
-
setNdjson(event.target.value);
|
|
103
|
-
};
|
|
104
|
-
return /* @__PURE__ */ jsxDEV("div", {
|
|
105
|
-
className: "flex flex-col gap-4",
|
|
106
|
-
"data-testid": "lunora-export-import",
|
|
107
|
-
children: [/* @__PURE__ */ jsxDEV(Card, {
|
|
108
|
-
className: "rounded-xl border border-border bg-card shadow-xs",
|
|
109
|
-
children: [/* @__PURE__ */ jsxDEV("header", {
|
|
110
|
-
className: "border-b border-border px-4 py-3",
|
|
111
|
-
children: /* @__PURE__ */ jsxDEV("span", {
|
|
112
|
-
className: "font-mono text-[11px] tracking-wide text-muted-foreground uppercase",
|
|
113
|
-
children: t("Export")
|
|
114
|
-
}, void 0, false)
|
|
115
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(CardContent, {
|
|
116
|
-
className: "flex flex-col gap-3 p-4",
|
|
117
|
-
children: [/* @__PURE__ */ jsxDEV("div", {
|
|
118
|
-
className: "flex flex-wrap items-center gap-2",
|
|
119
|
-
children: [/* @__PURE__ */ jsxDEV(ShardInput, {
|
|
120
|
-
onChange: setShardKey,
|
|
121
|
-
testId: "ei-shard-input",
|
|
122
|
-
value: shardKey
|
|
123
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(Button, {
|
|
124
|
-
"data-testid": "ei-export",
|
|
125
|
-
disabled: busy,
|
|
126
|
-
onClick: runExport,
|
|
127
|
-
type: "button",
|
|
128
|
-
children: t("Export")
|
|
129
|
-
}, void 0, false)]
|
|
130
|
-
}, void 0, true), exportCount !== null && /* @__PURE__ */ jsxDEV("p", {
|
|
131
|
-
className: "text-sm text-muted-foreground",
|
|
132
|
-
"data-testid": "ei-export-result",
|
|
133
|
-
children: t("Exported {count} rows.", {
|
|
134
|
-
count: exportCount
|
|
135
|
-
})
|
|
136
|
-
}, void 0, false)]
|
|
137
|
-
}, void 0, true)]
|
|
138
|
-
}, void 0, true), /* @__PURE__ */ jsxDEV(Card, {
|
|
139
|
-
className: "rounded-xl border border-border bg-card shadow-xs",
|
|
140
|
-
children: [/* @__PURE__ */ jsxDEV("header", {
|
|
141
|
-
className: "border-b border-border px-4 py-3",
|
|
142
|
-
children: /* @__PURE__ */ jsxDEV("span", {
|
|
143
|
-
className: "font-mono text-[11px] tracking-wide text-muted-foreground uppercase",
|
|
144
|
-
children: t("Import")
|
|
145
|
-
}, void 0, false)
|
|
146
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV(CardContent, {
|
|
147
|
-
className: "flex flex-col gap-3 p-4",
|
|
148
|
-
children: [/* @__PURE__ */ jsxDEV(Textarea, {
|
|
149
|
-
"aria-label": "NDJSON",
|
|
150
|
-
className: "font-mono text-xs min-h-40 rounded-md",
|
|
151
|
-
"data-testid": "ei-ndjson",
|
|
152
|
-
onChange: onNdjsonChange,
|
|
153
|
-
placeholder: '{"table":"messages","doc":{…}}',
|
|
154
|
-
value: ndjson
|
|
155
|
-
}, void 0, false), /* @__PURE__ */ jsxDEV("div", {
|
|
156
|
-
className: "flex flex-wrap items-center gap-2",
|
|
157
|
-
children: /* @__PURE__ */ jsxDEV(ConfirmButton, {
|
|
158
|
-
confirmLabel: t("Import (writes rows)?"),
|
|
159
|
-
disabled: busy || ndjson.trim() === "",
|
|
160
|
-
onConfirm: runImport,
|
|
161
|
-
testId: "ei-import",
|
|
162
|
-
children: t("Import")
|
|
163
|
-
}, void 0, false)
|
|
164
|
-
}, void 0, false), importResult !== null && /* @__PURE__ */ jsxDEV("div", {
|
|
165
|
-
className: "flex flex-col gap-2",
|
|
166
|
-
"data-testid": "ei-import-result",
|
|
167
|
-
children: [/* @__PURE__ */ jsxDEV("p", {
|
|
168
|
-
className: "text-sm text-muted-foreground",
|
|
169
|
-
children: t("Inserted {inserted}, {conflicts} conflicts, {errors} errors.", {
|
|
170
|
-
conflicts: importResult.conflicts,
|
|
171
|
-
errors: importResult.errors.length,
|
|
172
|
-
inserted: insertedTotal
|
|
173
|
-
})
|
|
174
|
-
}, void 0, false), importResult.errors.length > 0 && /* @__PURE__ */ jsxDEV("ul", {
|
|
175
|
-
className: "flex flex-col gap-1",
|
|
176
|
-
"data-testid": "ei-import-errors",
|
|
177
|
-
children: importResult.errors.map((rowError) => /* @__PURE__ */ jsxDEV("li", {
|
|
178
|
-
className: "text-xs text-destructive",
|
|
179
|
-
children: t("line {line} ({table}): {message}", {
|
|
180
|
-
line: rowError.line,
|
|
181
|
-
message: rowError.message,
|
|
182
|
-
table: rowError.table
|
|
183
|
-
})
|
|
184
|
-
}, `${rowError.table}-${rowError.line.toString()}`, false))
|
|
185
|
-
}, void 0, false)]
|
|
186
|
-
}, void 0, true)]
|
|
187
|
-
}, void 0, true)]
|
|
188
|
-
}, void 0, true), error !== null && /* @__PURE__ */ jsxDEV("p", {
|
|
189
|
-
className: "text-sm text-destructive",
|
|
190
|
-
"data-testid": "ei-error",
|
|
191
|
-
role: "alert",
|
|
192
|
-
children: error
|
|
193
|
-
}, void 0, false)]
|
|
194
|
-
}, void 0, true);
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
export { ExportImportPanel };
|