@lunora/studio 0.0.0 → 1.0.0-alpha.1
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 +1402 -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_FUNCTION_PREFIX-DmBqMZ-z.js +45 -0
- package/dist/packem_shared/ApiDocsPanel-DpRjJhG5.js +842 -0
- package/dist/packem_shared/ApiReferencePanel-DMIUp-kK.js +229 -0
- package/dist/packem_shared/ApiTab-DURGU15e.js +251 -0
- package/dist/packem_shared/AuditPanel-BC59Nhst.js +212 -0
- package/dist/packem_shared/CommandPalette-Dx_CoB9i.js +373 -0
- package/dist/packem_shared/ConfirmButton-WQVUoGFb.js +59 -0
- package/dist/packem_shared/ConnectionBadge-Bxagrip8.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/DataBrowser-Coz6jJE6.js +4542 -0
- package/dist/packem_shared/DataFilters-FNquMaiu.js +249 -0
- package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +66 -0
- package/dist/packem_shared/ExportImportPanel-WO34fJxy.js +193 -0
- package/dist/packem_shared/FileBrowser-Zcr-Qgxo.js +2932 -0
- package/dist/packem_shared/FunctionRunner-j0Rd5m9t.js +343 -0
- package/dist/packem_shared/FunctionStatsPanel-DboBl-XL.js +432 -0
- package/dist/packem_shared/GlobalDataBrowser-9MhPEfgN.js +318 -0
- package/dist/packem_shared/HealthPanel-DOIgbUtx.js +640 -0
- package/dist/packem_shared/HomePanel-bdOCNA-p.js +1273 -0
- package/dist/packem_shared/InsightsPanel-DaZPnSgt.js +423 -0
- package/dist/packem_shared/LogsPanel-CWdqAGpQ.js +839 -0
- package/dist/packem_shared/MailPanel-D_EGtDnS.js +447 -0
- package/dist/packem_shared/MetricsPanel-E4Gv6wTO.js +1625 -0
- package/dist/packem_shared/MigrationsPanel-DQdPY9io.js +246 -0
- package/dist/packem_shared/OpenRpcReferencePanel-j2p3HB0s.js +191 -0
- package/dist/packem_shared/PitrPanel-BbBkQR6t.js +252 -0
- package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +3 -0
- package/dist/packem_shared/ScheduledJobs-Ok1CYYwI.js +159 -0
- package/dist/packem_shared/SchemaViewer-D8XGnp-X.js +2512 -0
- package/dist/packem_shared/SecurityAdvisorPanel-Cdm2IxLW.js +79 -0
- package/dist/packem_shared/SettingsPanel-D3WF2mBU.js +176 -0
- package/dist/packem_shared/ShardInput-DNCsT1KW.js +107 -0
- package/dist/packem_shared/SqlEditorPanel-BuQ7f2Hs.js +13 -0
- package/dist/packem_shared/Studio-D36od9Oz.js +33 -0
- package/dist/packem_shared/StudioApp-dvywkJ8I.js +383 -0
- package/dist/packem_shared/StudioI18nProvider-Dcajsznk.js +48 -0
- package/dist/packem_shared/TableEditor-DIVDk3vT.js +371 -0
- package/dist/packem_shared/advisor-view-DBlzJi6C.js +159 -0
- package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +108 -0
- package/dist/packem_shared/app.d-CCmwDEVs.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-BZfRdxSE.js +8 -0
- package/dist/packem_shared/checkbox-UNkzAxl-.js +63 -0
- package/dist/packem_shared/createStudioI18n-CgvlmDkN.js +27 -0
- package/dist/packem_shared/data-grid-CCh2Couo.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-DTjG6Sex.js +840 -0
- package/dist/packem_shared/input-XH4r1Pt1.js +53 -0
- package/dist/packem_shared/internal-BBZYexre.js +68 -0
- package/dist/packem_shared/label-D8ykjn5J.js +46 -0
- package/dist/packem_shared/live-status-bPff1O7Y.js +44 -0
- package/dist/packem_shared/reference-view-BCKIoai7.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-CW2y2x9h.js +2562 -0
- package/dist/packem_shared/storage-tier-CL98eOvn.js +85 -0
- package/dist/packem_shared/studio-BDVd7rIV.js +10303 -0
- package/dist/packem_shared/table-_RzNvy3R.js +246 -0
- package/dist/packem_shared/table-list-sidebar-aZHLq70w.js +832 -0
- package/dist/packem_shared/textarea-D3gaCU_-.js +46 -0
- package/dist/packem_shared/use-live-admin-D1h1Fzsd.js +73 -0
- package/dist/packem_shared/use-live-shard-seed-B74RYcOy.js +76 -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 +356 -0
- package/dist/styles.css +2 -0
- package/package.json +77 -17
- package/src/theme.css +59 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export { StudioApp } from './packem_shared/StudioApp-dvywkJ8I.js';
|
|
2
|
+
export { CommandPalette, openCommandPalette } from './packem_shared/CommandPalette-Dx_CoB9i.js';
|
|
3
|
+
export { S as Studio } from './packem_shared/studio-BDVd7rIV.js';
|
|
4
|
+
export { ConfirmButton } from './packem_shared/ConfirmButton-WQVUoGFb.js';
|
|
5
|
+
export { default as ConnectionBadge } from './packem_shared/ConnectionBadge-Bxagrip8.js';
|
|
6
|
+
export { ErrorBoundary } from './packem_shared/ErrorBoundary-BzAApI7J.js';
|
|
7
|
+
export { ShardInput } from './packem_shared/ShardInput-DNCsT1KW.js';
|
|
8
|
+
export { DEFAULT_INSIGHT_THRESHOLDS, deriveInsights } from './packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js';
|
|
9
|
+
export { InsightsPanel } from './packem_shared/InsightsPanel-DaZPnSgt.js';
|
|
10
|
+
export { default as SecurityAdvisorPanel } from './packem_shared/SecurityAdvisorPanel-Cdm2IxLW.js';
|
|
11
|
+
export { default as ApiDocsPanel } from './packem_shared/ApiDocsPanel-DpRjJhG5.js';
|
|
12
|
+
export { default as ApiReferencePanel } from './packem_shared/ApiReferencePanel-DMIUp-kK.js';
|
|
13
|
+
export { default as ApiTab } from './packem_shared/ApiTab-DURGU15e.js';
|
|
14
|
+
export { default as OpenRpcReferencePanel } from './packem_shared/OpenRpcReferencePanel-j2p3HB0s.js';
|
|
15
|
+
export { DataBrowser } from './packem_shared/DataBrowser-Coz6jJE6.js';
|
|
16
|
+
export { DataFilters, toFilterClauses } from './packem_shared/DataFilters-FNquMaiu.js';
|
|
17
|
+
export { GlobalDataBrowser } from './packem_shared/GlobalDataBrowser-9MhPEfgN.js';
|
|
18
|
+
export { TableEditor } from './packem_shared/TableEditor-DIVDk3vT.js';
|
|
19
|
+
export { ExportImportPanel } from './packem_shared/ExportImportPanel-WO34fJxy.js';
|
|
20
|
+
export { MigrationsPanel } from './packem_shared/MigrationsPanel-DQdPY9io.js';
|
|
21
|
+
export { PitrPanel } from './packem_shared/PitrPanel-BbBkQR6t.js';
|
|
22
|
+
export { FunctionRunner } from './packem_shared/FunctionRunner-j0Rd5m9t.js';
|
|
23
|
+
export { FunctionStatsPanel } from './packem_shared/FunctionStatsPanel-DboBl-XL.js';
|
|
24
|
+
export { HomePanel } from './packem_shared/HomePanel-bdOCNA-p.js';
|
|
25
|
+
export { AuditPanel } from './packem_shared/AuditPanel-BC59Nhst.js';
|
|
26
|
+
export { LogsPanel } from './packem_shared/LogsPanel-CWdqAGpQ.js';
|
|
27
|
+
export { MailPanel } from './packem_shared/MailPanel-D_EGtDnS.js';
|
|
28
|
+
export { ScheduledJobs } from './packem_shared/ScheduledJobs-Ok1CYYwI.js';
|
|
29
|
+
export { HealthPanel } from './packem_shared/HealthPanel-DOIgbUtx.js';
|
|
30
|
+
export { aggregateMetrics, shardsToAggregate } from './packem_shared/aggregateMetrics-D4nUHEKU.js';
|
|
31
|
+
export { MetricsPanel } from './packem_shared/MetricsPanel-E4Gv6wTO.js';
|
|
32
|
+
export { SchemaViewer } from './packem_shared/SchemaViewer-D8XGnp-X.js';
|
|
33
|
+
export { SettingsPanel } from './packem_shared/SettingsPanel-D3WF2mBU.js';
|
|
34
|
+
export { S as SqlEditorPanel } from './packem_shared/sql-editor-panel-CW2y2x9h.js';
|
|
35
|
+
export { FileBrowser } from './packem_shared/FileBrowser-Zcr-Qgxo.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/createStudioI18n-CgvlmDkN.js';
|
|
39
|
+
export { StudioI18nProvider } from './packem_shared/StudioI18nProvider-Dcajsznk.js';
|
|
40
|
+
export { ADMIN_FUNCTIONS, ADMIN_FUNCTION_PREFIX } from './packem_shared/ADMIN_FUNCTION_PREFIX-DmBqMZ-z.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-CCmwDEVs.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-dvywkJ8I.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,45 @@
|
|
|
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
|
+
listSubscriptions: "__lunora_admin__:listSubscriptions",
|
|
17
|
+
listTableIndexes: "__lunora_admin__:listTableIndexes",
|
|
18
|
+
listWorkflows: "__lunora_admin__:listWorkflows",
|
|
19
|
+
getLogs: "__lunora_admin__:getLogs",
|
|
20
|
+
getMetrics: "__lunora_admin__:getMetrics",
|
|
21
|
+
getPitrBookmark: "__lunora_admin__:getPitrBookmark",
|
|
22
|
+
getRequestLog: "__lunora_admin__:getRequestLog",
|
|
23
|
+
getSecurityAudit: "__lunora_admin__:getSecurityAudit",
|
|
24
|
+
getSettings: "__lunora_admin__:getSettings",
|
|
25
|
+
// eslint-disable-next-line no-secrets/no-secrets -- reserved admin RPC path constant, not a credential
|
|
26
|
+
getWorkflowInstanceStatus: "__lunora_admin__:getWorkflowInstanceStatus",
|
|
27
|
+
importShard: "__lunora_admin__:importShard",
|
|
28
|
+
listTables: "__lunora_admin__:listTables",
|
|
29
|
+
maskPolicies: "__lunora_admin__:maskPolicies",
|
|
30
|
+
migrationStatus: "__lunora_admin__:migrationStatus",
|
|
31
|
+
pitrRestore: "__lunora_admin__:pitrRestore",
|
|
32
|
+
readTablePage: "__lunora_admin__:readTablePage",
|
|
33
|
+
rlsPolicies: "__lunora_admin__:rlsPolicies",
|
|
34
|
+
runAs: "__lunora_admin__:runAs",
|
|
35
|
+
runMigration: "__lunora_admin__:runMigration",
|
|
36
|
+
runSql: "__lunora_admin__:runSql",
|
|
37
|
+
sendTestMail: "__lunora_admin__:sendTestMail",
|
|
38
|
+
storageOrphans: "__lunora_admin__:storageOrphans",
|
|
39
|
+
storageReferences: "__lunora_admin__:storageReferences",
|
|
40
|
+
storageRules: "__lunora_admin__:storageRules",
|
|
41
|
+
studioFeatures: "__lunora_admin__:studioFeatures",
|
|
42
|
+
writeRow: "__lunora_admin__:writeRow"
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { ADMIN_FUNCTIONS, ADMIN_FUNCTION_PREFIX };
|