@mostra/shell 0.0.0-placeholder → 0.1.0
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 +202 -0
- package/README.md +9 -1
- package/dist/assets/index-CLXPLDG6.js +64 -0
- package/dist/assets/index-CLXPLDG6.js.map +1 -0
- package/dist/assets/index-ICive1wt.css +1 -0
- package/dist/index.html +15 -0
- package/package.json +47 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--mostra-paper:#f7f5f0;--mostra-ink:#1d1b18;--mostra-muted:#6d675e;--mostra-line:#e2ddd3;--mostra-accent:#a8322a;--mostra-accent-ink:#fff;--mostra-gilt:#b89a5a;--mostra-ok:#2f7d4f;--mostra-wait:#b8741a;--mostra-bad:#a8322a;--mostra-card:#fdfcf9;color:var(--mostra-ink);background:var(--mostra-paper);font-family:system-ui,-apple-system,Segoe UI,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--mostra-paper:#1b1a18;--mostra-ink:#ece8df;--mostra-muted:#a39d92;--mostra-line:#34312c;--mostra-accent:#c2463c;--mostra-card:#24221f}}html,body,#root{height:100%;margin:0}.mostra-shell{height:100%;display:flex}.mostra-page{flex-direction:column;height:100%;display:flex}.mostra-rail{border-bottom:1px solid var(--mostra-line);align-items:center;gap:1rem;min-height:2.75rem;padding:.5rem 1rem;display:flex}.mostra-label{flex:1;align-items:center;gap:.75rem;min-width:0;display:flex}.mostra-mark{letter-spacing:.02em;font-family:Iowan Old Style,Palatino Linotype,Georgia,serif;font-size:1.05rem}.mostra-title{white-space:nowrap;text-overflow:ellipsis;font-family:Iowan Old Style,Palatino Linotype,Georgia,serif;font-size:1rem;overflow:hidden}.mostra-subtitle{color:var(--mostra-muted);font-size:.75rem}.mostra-status{color:var(--mostra-muted);white-space:nowrap;align-items:center;gap:.4rem;font-size:.8rem;display:flex}.mostra-dot{background:var(--mostra-ok);border-radius:50%;width:.45rem;height:.45rem}.mostra-dot-saving{background:var(--mostra-muted)}.mostra-dot-offline,.mostra-dot-conflict{background:var(--mostra-wait)}.mostra-trusted{border:1px solid var(--mostra-gilt);border-radius:.5rem;align-items:center;gap:.5rem;padding:.3rem .4rem .3rem .75rem;display:flex}.mostra-seal{color:var(--mostra-muted);text-align:right;max-width:5.5rem;font-size:.65rem;line-height:1.1}.mostra-button{font:inherit;border:1px solid var(--mostra-line);background:var(--mostra-card);color:inherit;cursor:pointer;white-space:nowrap;border-radius:.375rem;padding:.4rem .9rem;font-size:.875rem}.mostra-button:disabled{opacity:.6;cursor:default}.mostra-primary{background:var(--mostra-accent);border-color:var(--mostra-accent);color:var(--mostra-accent-ink)}.mostra-link{font:inherit;color:inherit;text-underline-offset:.15em;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}.mostra-banner,.mostra-following{border-bottom:1px solid var(--mostra-line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;padding:.5rem 1rem;font-size:.85rem;display:flex}.mostra-following{color:var(--mostra-muted);justify-content:flex-start;padding:.25rem 1rem;font-size:.75rem}.mostra-warn{color:var(--mostra-wait)}.mostra-dev{font-weight:600}.mostra-actions{align-items:center;gap:1rem;display:flex}.mostra-stage{flex:1;min-height:0;display:flex;position:relative}.mostra-verify{display:flex;position:fixed;inset:0}.mostra-frame{border:0;flex:1;width:100%;height:100%;display:block}.mostra-receipt,.mostra-problem,.mostra-orphans{background:var(--mostra-card);border:1px solid var(--mostra-line);border-radius:.6rem;max-width:22rem;padding:.75rem 1rem;font-size:.85rem;position:absolute;right:1rem;box-shadow:0 6px 24px #00000014}.mostra-receipt{bottom:1rem}.mostra-problem{top:1rem}.mostra-orphans{bottom:1rem;left:1rem;right:auto}.mostra-receipt h2,.mostra-problem h2,.mostra-orphans h2{margin:0 0 .4rem;font-family:Iowan Old Style,Palatino Linotype,Georgia,serif;font-size:1.05rem;font-weight:400}.mostra-receipt ul,.mostra-problem ul,.mostra-orphans ul{gap:.3rem;margin:0;padding:0;list-style:none;display:grid}.mostra-receipt li{justify-content:space-between;gap:1rem;padding-left:.9rem;display:flex;position:relative}.mostra-receipt li:before{content:"";background:currentColor;border-radius:50%;width:.4rem;height:.4rem;position:absolute;top:.45em;left:0}.mostra-ok:before{color:var(--mostra-ok)}.mostra-wait:before{color:var(--mostra-wait)}.mostra-bad:before{color:var(--mostra-bad)}.mostra-receipt time{color:var(--mostra-muted);font-family:ui-monospace,monospace;font-size:.75rem}.mostra-footnote{color:var(--mostra-muted);margin:.5rem 0 0;font-size:.72rem}.mostra-problem p{margin:0 0 .4rem}.mostra-orphans section{max-height:50vh;margin-top:.5rem;overflow:auto}.mostra-orphan-label{font-weight:600}.mostra-orphan-value{white-space:pre-wrap;word-break:break-word;-webkit-user-select:text;user-select:text;margin:.2rem 0;font-family:ui-monospace,monospace;font-size:.78rem}.mostra-orphan-meta{color:var(--mostra-muted);justify-content:space-between;font-size:.72rem;display:flex}.mostra-dialog-backdrop{background:#0000004d;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.mostra-dialog{background:var(--mostra-card);border:1px solid var(--mostra-gilt);border-radius:.75rem;max-width:26rem;padding:1.25rem}.mostra-dialog p{margin:0 0 1rem}.mostra-notice{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:.25rem;padding:2rem}.mostra-notice h1{margin:0;font-size:1.25rem;font-weight:600}.mostra-notice p{opacity:.8;margin:0}.mostra-notice .mostra-code{opacity:.5;margin-top:1rem;font-family:ui-monospace,monospace;font-size:.75rem}.mostra-notice .mostra-actions button{font:inherit;border:1px solid color-mix(in srgb, currentColor 30%, transparent);color:inherit;cursor:pointer;background:0 0;border-radius:.375rem;padding:.4rem .9rem}@media (width<=720px){.mostra-status,.mostra-subtitle{display:none}.mostra-trusted{background:var(--mostra-paper);z-index:1;border-width:1px 0 0;border-radius:0;justify-content:flex-end;padding:.6rem .75rem;position:fixed;bottom:0;left:0;right:0}.mostra-page{box-sizing:border-box;padding-bottom:3.5rem}.mostra-receipt,.mostra-orphans,.mostra-problem{max-width:none;left:.75rem;right:.75rem}}.mostra-notice .mostra-actions{margin-top:1rem}
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<meta name="referrer" content="no-referrer" />
|
|
7
|
+
<meta name="color-scheme" content="light dark" />
|
|
8
|
+
<title>Mostra</title>
|
|
9
|
+
<script type="module" crossorigin src="/_mostra/shell/assets/index-CLXPLDG6.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="/_mostra/shell/assets/index-ICive1wt.css">
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<div id="root"></div>
|
|
14
|
+
</body>
|
|
15
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,7 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mostra/shell",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Mostra's shell: the trusted page that hosts an artifact's frame on its own origin, talking to it over the validated bridge. Built files, served by the runtime's gateway.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"
|
|
7
|
-
|
|
6
|
+
"author": "The Mostra Authors",
|
|
7
|
+
"homepage": "https://github.com/mostra-dev/mostra/tree/main/packages/shell#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/mostra-dev/mostra.git",
|
|
11
|
+
"directory": "packages/shell"
|
|
12
|
+
},
|
|
13
|
+
"bugs": "https://github.com/mostra-dev/mostra/issues",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"sideEffects": true,
|
|
16
|
+
"exports": {
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
21
|
+
],
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=24"
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public",
|
|
27
|
+
"provenance": true
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@mostra/protocol": "0.1.0",
|
|
31
|
+
"react": "19.3.0",
|
|
32
|
+
"react-dom": "19.3.0",
|
|
33
|
+
"zod": "4.6.5"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@mostra/tools": "0.0.0",
|
|
37
|
+
"@types/node": "24.19.1",
|
|
38
|
+
"@types/react": "19.3.0",
|
|
39
|
+
"@types/react-dom": "19.3.0",
|
|
40
|
+
"@vitejs/plugin-react": "6.1.1",
|
|
41
|
+
"typescript": "7.0.2",
|
|
42
|
+
"vite": "8.3.2",
|
|
43
|
+
"vitest": "5.0.3"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "vite build",
|
|
47
|
+
"typecheck": "tsc -b",
|
|
48
|
+
"test": "vitest run"
|
|
49
|
+
}
|
|
50
|
+
}
|