@lunora/studio 0.0.0 → 1.0.0-alpha.10
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 +105 -0
- package/README.md +123 -9
- package/__assets__/package-og.svg +14 -0
- package/dist/index.d.ts +1403 -0
- package/dist/index.js +41 -0
- package/dist/mount.d.ts +21 -0
- package/dist/mount.js +26 -0
- package/dist/packem_shared/ADMIN_FUNCTIONS-DjXgvJb6.js +46 -0
- package/dist/packem_shared/ApiDocsPanel-yVSGHK3H.js +842 -0
- package/dist/packem_shared/ApiReferencePanel-1vubqG5s.js +229 -0
- package/dist/packem_shared/ApiTab-rwttyQ1-.js +251 -0
- package/dist/packem_shared/AuditPanel-D9Eh7j7E.js +200 -0
- package/dist/packem_shared/CommandPalette-BtgkBzZI.js +373 -0
- package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +59 -0
- package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +111 -0
- package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +50 -0
- package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +89 -0
- package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +27 -0
- package/dist/packem_shared/DataBrowser-CyckZRwj.js +4480 -0
- package/dist/packem_shared/DataFilters-FNquMaiu.js +249 -0
- package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +66 -0
- package/dist/packem_shared/ExportImportPanel-BGJqFK9X.js +197 -0
- package/dist/packem_shared/FileBrowser-0pCpdKPE.js +2932 -0
- package/dist/packem_shared/FunctionRunner-7NH3KcTg.js +343 -0
- package/dist/packem_shared/FunctionStatsPanel-CXynSuqT.js +375 -0
- package/dist/packem_shared/GlobalDataBrowser-DAxzB-Br.js +289 -0
- package/dist/packem_shared/HealthPanel-CyLs7qZm.js +648 -0
- package/dist/packem_shared/HomePanel-BOkFRbuj.js +1334 -0
- package/dist/packem_shared/InsightsPanel-CvXMoZuv.js +461 -0
- package/dist/packem_shared/LogsPanel-BrUstOk6.js +827 -0
- package/dist/packem_shared/MailPanel-GnnrNqL6.js +440 -0
- package/dist/packem_shared/MetricsPanel-BN_uUU-_.js +1611 -0
- package/dist/packem_shared/MigrationsPanel-DaZuUHje.js +239 -0
- package/dist/packem_shared/OpenRpcReferencePanel-vbcYbv3V.js +191 -0
- package/dist/packem_shared/PitrPanel-LJGNP_IX.js +252 -0
- package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +3 -0
- package/dist/packem_shared/ScheduledJobs-UmVaMbJy.js +262 -0
- package/dist/packem_shared/SchemaViewer-Bam6ylvw.js +2512 -0
- package/dist/packem_shared/SecurityAdvisorPanel-DTmjUNqt.js +92 -0
- package/dist/packem_shared/SettingsPanel-C2wDK-8F.js +390 -0
- package/dist/packem_shared/ShardInput-gx_DZXXn.js +107 -0
- package/dist/packem_shared/SqlEditorPanel-D5wMIxcg.js +13 -0
- package/dist/packem_shared/Studio-DpgYe4qt.js +33 -0
- package/dist/packem_shared/StudioApp-C7aaizqc.js +657 -0
- package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +48 -0
- package/dist/packem_shared/TableEditor-DzK3Z6rL.js +371 -0
- package/dist/packem_shared/advisor-view-CGcfMiPq.js +159 -0
- package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +108 -0
- package/dist/packem_shared/app.d-Nbhpihxv.d.ts +300 -0
- package/dist/packem_shared/badge-B2PKA1-5.js +49 -0
- package/dist/packem_shared/bar-chart-CzJAgqkp.js +3245 -0
- package/dist/packem_shared/button-BhsN2uZH.js +49 -0
- package/dist/packem_shared/card-DURq3ElK.js +175 -0
- package/dist/packem_shared/cf-links-2cktDedA.js +8 -0
- package/dist/packem_shared/checkbox-UNkzAxl-.js +63 -0
- package/dist/packem_shared/data-grid-B5CaV3wS.js +183 -0
- package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +280 -0
- package/dist/packem_shared/empty-state-DY_oe0k6.js +98 -0
- package/dist/packem_shared/grid-features-CzUfqgsM.js +840 -0
- package/dist/packem_shared/input-XH4r1Pt1.js +53 -0
- package/dist/packem_shared/internal-rXJEAhXS.js +68 -0
- package/dist/packem_shared/label-D8ykjn5J.js +46 -0
- package/dist/packem_shared/live-status-FZ0psC1z.js +44 -0
- package/dist/packem_shared/reference-view-B4E49Lip.js +2180 -0
- package/dist/packem_shared/shard-history-DyebH1R5.js +38 -0
- package/dist/packem_shared/sparkline-10dG-_f0.js +93 -0
- package/dist/packem_shared/sql-editor-panel-Smfl_FDF.js +2562 -0
- package/dist/packem_shared/storage-tier-CL98eOvn.js +85 -0
- package/dist/packem_shared/studio-9Mq0PdMi.js +10831 -0
- package/dist/packem_shared/table-_RzNvy3R.js +246 -0
- package/dist/packem_shared/table-list-sidebar-Bg7uzbvC.js +832 -0
- package/dist/packem_shared/textarea-D3gaCU_-.js +46 -0
- package/dist/packem_shared/use-admin-query-4JQW2rr1.js +88 -0
- package/dist/packem_shared/useDebounced-Dxncpg6z.js +32 -0
- package/dist/packem_shared/utils-B05Dmz_H.js +8 -0
- package/dist/packem_shared/virtual-rect-CVMUskSm.js +10 -0
- package/dist/standalone/studio.js +378 -0
- package/dist/styles.css +2 -0
- package/package.json +78 -17
- package/src/theme.css +59 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { StudioApp } from './packem_shared/StudioApp-C7aaizqc.js';
|
|
2
|
+
export { CommandPalette, openCommandPalette } from './packem_shared/CommandPalette-BtgkBzZI.js';
|
|
3
|
+
export { S as Studio } from './packem_shared/studio-9Mq0PdMi.js';
|
|
4
|
+
export { ConfirmButton } from './packem_shared/ConfirmButton-C2eVi2Qv.js';
|
|
5
|
+
export { default as ConnectionBadge } from './packem_shared/ConnectionBadge-B2DDM2Tn.js';
|
|
6
|
+
export { ErrorBoundary } from './packem_shared/ErrorBoundary-BzAApI7J.js';
|
|
7
|
+
export { ShardInput } from './packem_shared/ShardInput-gx_DZXXn.js';
|
|
8
|
+
export { DEFAULT_INSIGHT_THRESHOLDS, deriveInsights } from './packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js';
|
|
9
|
+
export { InsightsPanel } from './packem_shared/InsightsPanel-CvXMoZuv.js';
|
|
10
|
+
export { default as SecurityAdvisorPanel } from './packem_shared/SecurityAdvisorPanel-DTmjUNqt.js';
|
|
11
|
+
export { default as ApiDocsPanel } from './packem_shared/ApiDocsPanel-yVSGHK3H.js';
|
|
12
|
+
export { default as ApiReferencePanel } from './packem_shared/ApiReferencePanel-1vubqG5s.js';
|
|
13
|
+
export { default as ApiTab } from './packem_shared/ApiTab-rwttyQ1-.js';
|
|
14
|
+
export { default as OpenRpcReferencePanel } from './packem_shared/OpenRpcReferencePanel-vbcYbv3V.js';
|
|
15
|
+
export { DataBrowser } from './packem_shared/DataBrowser-CyckZRwj.js';
|
|
16
|
+
export { DataFilters, toFilterClauses } from './packem_shared/DataFilters-FNquMaiu.js';
|
|
17
|
+
export { GlobalDataBrowser } from './packem_shared/GlobalDataBrowser-DAxzB-Br.js';
|
|
18
|
+
export { TableEditor } from './packem_shared/TableEditor-DzK3Z6rL.js';
|
|
19
|
+
export { ExportImportPanel } from './packem_shared/ExportImportPanel-BGJqFK9X.js';
|
|
20
|
+
export { MigrationsPanel } from './packem_shared/MigrationsPanel-DaZuUHje.js';
|
|
21
|
+
export { PitrPanel } from './packem_shared/PitrPanel-LJGNP_IX.js';
|
|
22
|
+
export { FunctionRunner } from './packem_shared/FunctionRunner-7NH3KcTg.js';
|
|
23
|
+
export { FunctionStatsPanel } from './packem_shared/FunctionStatsPanel-CXynSuqT.js';
|
|
24
|
+
export { HomePanel } from './packem_shared/HomePanel-BOkFRbuj.js';
|
|
25
|
+
export { AuditPanel } from './packem_shared/AuditPanel-D9Eh7j7E.js';
|
|
26
|
+
export { LogsPanel } from './packem_shared/LogsPanel-BrUstOk6.js';
|
|
27
|
+
export { MailPanel } from './packem_shared/MailPanel-GnnrNqL6.js';
|
|
28
|
+
export { ScheduledJobs } from './packem_shared/ScheduledJobs-UmVaMbJy.js';
|
|
29
|
+
export { HealthPanel } from './packem_shared/HealthPanel-CyLs7qZm.js';
|
|
30
|
+
export { aggregateMetrics, shardsToAggregate } from './packem_shared/aggregateMetrics-D4nUHEKU.js';
|
|
31
|
+
export { MetricsPanel } from './packem_shared/MetricsPanel-BN_uUU-_.js';
|
|
32
|
+
export { SchemaViewer } from './packem_shared/SchemaViewer-Bam6ylvw.js';
|
|
33
|
+
export { SettingsPanel } from './packem_shared/SettingsPanel-C2wDK-8F.js';
|
|
34
|
+
export { S as SqlEditorPanel } from './packem_shared/sql-editor-panel-Smfl_FDF.js';
|
|
35
|
+
export { FileBrowser } from './packem_shared/FileBrowser-0pCpdKPE.js';
|
|
36
|
+
export { DEFAULT_AUTO_REFRESH_MS, useAutoRefresh } from './packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js';
|
|
37
|
+
export { default as useDebounced } from './packem_shared/useDebounced-Dxncpg6z.js';
|
|
38
|
+
export { DEFAULT_LOCALE, createStudioI18n, studioI18n, useT } from './packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js';
|
|
39
|
+
export { StudioI18nProvider } from './packem_shared/StudioI18nProvider-B-tDCZIi.js';
|
|
40
|
+
export { ADMIN_FUNCTIONS, ADMIN_FUNCTION_PREFIX } from './packem_shared/ADMIN_FUNCTIONS-DjXgvJb6.js';
|
|
41
|
+
export { default as STUDIO_ROOT_CLASS } from './packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js';
|
package/dist/mount.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Root } from 'react-dom/client';
|
|
2
|
+
import { S as StudioAppProps } from "./packem_shared/app.d-Nbhpihxv.js";
|
|
3
|
+
import '@lunora/client';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '@lingui/core';
|
|
6
|
+
interface MountStudioOptions extends StudioAppProps {
|
|
7
|
+
/**
|
|
8
|
+
* The container to mount into. Accepts an element or a selector; defaults to
|
|
9
|
+
* `#root`. Throws if the selector matches nothing so misconfiguration fails
|
|
10
|
+
* loudly rather than silently rendering nowhere.
|
|
11
|
+
*/
|
|
12
|
+
readonly container?: Element | string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Mount the batteries-included {@link StudioApp} into the DOM and return the
|
|
16
|
+
* React root (call `.unmount()` to tear it down). This is the entry the
|
|
17
|
+
* standalone app's `main.tsx` and the `@lunora/vite` dev route both call — it
|
|
18
|
+
* keeps the host HTML to a single `<div id="root">` plus one script.
|
|
19
|
+
*/
|
|
20
|
+
declare const mountStudio: (options?: MountStudioOptions) => Root;
|
|
21
|
+
export { MountStudioOptions, mountStudio };
|
package/dist/mount.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createRoot } from 'react-dom/client';
|
|
2
|
+
import { StudioApp } from './packem_shared/StudioApp-C7aaizqc.js';
|
|
3
|
+
import { jsxDEV } from 'react/jsx-dev-runtime';
|
|
4
|
+
|
|
5
|
+
const mountStudio = (options = {}) => {
|
|
6
|
+
const {
|
|
7
|
+
container = "#root",
|
|
8
|
+
...appProps
|
|
9
|
+
} = options;
|
|
10
|
+
const element = typeof container === "string" ? document.querySelector(container) : container;
|
|
11
|
+
if (element === null) {
|
|
12
|
+
throw new Error(`mountStudio: container ${typeof container === "string" ? container : "element"} not found`);
|
|
13
|
+
}
|
|
14
|
+
const root = createRoot(element);
|
|
15
|
+
root.render(/* @__PURE__ */ jsxDEV(StudioApp, {
|
|
16
|
+
adminToken: appProps.adminToken,
|
|
17
|
+
basePath: appProps.basePath,
|
|
18
|
+
baseUrl: appProps.baseUrl,
|
|
19
|
+
locale: appProps.locale,
|
|
20
|
+
rulesInstalled: appProps.rulesInstalled,
|
|
21
|
+
studio: appProps.studio
|
|
22
|
+
}, void 0, false));
|
|
23
|
+
return root;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { mountStudio };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const ADMIN_FUNCTION_PREFIX = "__lunora_admin__:";
|
|
2
|
+
const ADMIN_FUNCTIONS = {
|
|
3
|
+
clearCapturedMail: "__lunora_admin__:clearCapturedMail",
|
|
4
|
+
clearTable: "__lunora_admin__:clearTable",
|
|
5
|
+
createWorkflowInstance: "__lunora_admin__:createWorkflowInstance",
|
|
6
|
+
deleteRows: "__lunora_admin__:deleteRows",
|
|
7
|
+
describeTable: "__lunora_admin__:describeTable",
|
|
8
|
+
describeTables: "__lunora_admin__:describeTables",
|
|
9
|
+
exportShard: "__lunora_admin__:exportShard",
|
|
10
|
+
facetColumn: "__lunora_admin__:facetColumn",
|
|
11
|
+
getAdvisories: "__lunora_admin__:getAdvisories",
|
|
12
|
+
getAuditLog: "__lunora_admin__:getAuditLog",
|
|
13
|
+
getAuthMetrics: "__lunora_admin__:getAuthMetrics",
|
|
14
|
+
getCapturedMail: "__lunora_admin__:getCapturedMail",
|
|
15
|
+
getFunctionStats: "__lunora_admin__:getFunctionStats",
|
|
16
|
+
listQueues: "__lunora_admin__:listQueues",
|
|
17
|
+
listSubscriptions: "__lunora_admin__:listSubscriptions",
|
|
18
|
+
listTableIndexes: "__lunora_admin__:listTableIndexes",
|
|
19
|
+
listWorkflows: "__lunora_admin__:listWorkflows",
|
|
20
|
+
getLogs: "__lunora_admin__:getLogs",
|
|
21
|
+
getMetrics: "__lunora_admin__:getMetrics",
|
|
22
|
+
getPitrBookmark: "__lunora_admin__:getPitrBookmark",
|
|
23
|
+
getRequestLog: "__lunora_admin__:getRequestLog",
|
|
24
|
+
getSecurityAudit: "__lunora_admin__:getSecurityAudit",
|
|
25
|
+
getSettings: "__lunora_admin__:getSettings",
|
|
26
|
+
// eslint-disable-next-line no-secrets/no-secrets -- reserved admin RPC path constant, not a credential
|
|
27
|
+
getWorkflowInstanceStatus: "__lunora_admin__:getWorkflowInstanceStatus",
|
|
28
|
+
importShard: "__lunora_admin__:importShard",
|
|
29
|
+
listTables: "__lunora_admin__:listTables",
|
|
30
|
+
maskPolicies: "__lunora_admin__:maskPolicies",
|
|
31
|
+
migrationStatus: "__lunora_admin__:migrationStatus",
|
|
32
|
+
pitrRestore: "__lunora_admin__:pitrRestore",
|
|
33
|
+
readTablePage: "__lunora_admin__:readTablePage",
|
|
34
|
+
rlsPolicies: "__lunora_admin__:rlsPolicies",
|
|
35
|
+
runAs: "__lunora_admin__:runAs",
|
|
36
|
+
runMigration: "__lunora_admin__:runMigration",
|
|
37
|
+
runSql: "__lunora_admin__:runSql",
|
|
38
|
+
sendTestMail: "__lunora_admin__:sendTestMail",
|
|
39
|
+
storageOrphans: "__lunora_admin__:storageOrphans",
|
|
40
|
+
storageReferences: "__lunora_admin__:storageReferences",
|
|
41
|
+
storageRules: "__lunora_admin__:storageRules",
|
|
42
|
+
studioFeatures: "__lunora_admin__:studioFeatures",
|
|
43
|
+
writeRow: "__lunora_admin__:writeRow"
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { ADMIN_FUNCTIONS, ADMIN_FUNCTION_PREFIX };
|