@cef-ai/widget-runtime 0.2.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/README.md +34 -0
- package/dist/audio/capture-upload.d.ts +116 -0
- package/dist/audio/capture-upload.js +347 -0
- package/dist/audio/clip-registry.d.ts +20 -0
- package/dist/audio/clip-registry.js +47 -0
- package/dist/audio/ddc-delegation.d.ts +18 -0
- package/dist/audio/ddc-delegation.js +64 -0
- package/dist/audio/mic.d.ts +1 -0
- package/dist/audio/mic.js +23 -0
- package/dist/audio/segment.d.ts +3 -0
- package/dist/audio/segment.js +24 -0
- package/dist/audio/wav.d.ts +2 -0
- package/dist/audio/wav.js +27 -0
- package/dist/bridge-wallet.d.ts +46 -0
- package/dist/bridge-wallet.js +80 -0
- package/dist/bridge.d.ts +6 -0
- package/dist/bridge.js +15 -0
- package/dist/build-tools.d.ts +4 -0
- package/dist/build-tools.js +12 -0
- package/dist/entry.d.ts +11 -0
- package/dist/entry.js +159 -0
- package/dist/host-bridge.d.ts +19 -0
- package/dist/host-bridge.js +214 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +21 -0
- package/dist/kinds/composite.d.ts +7 -0
- package/dist/kinds/composite.js +206 -0
- package/dist/kinds/conversation.d.ts +7 -0
- package/dist/kinds/conversation.js +667 -0
- package/dist/kinds/dashboard.d.ts +2 -0
- package/dist/kinds/dashboard.js +53 -0
- package/dist/kinds/list.d.ts +2 -0
- package/dist/kinds/list.js +22 -0
- package/dist/kinds/record.d.ts +2 -0
- package/dist/kinds/record.js +14 -0
- package/dist/kinds/submit.d.ts +6 -0
- package/dist/kinds/submit.js +481 -0
- package/dist/manifest.d.ts +32 -0
- package/dist/manifest.js +47 -0
- package/dist/mount.d.ts +19 -0
- package/dist/mount.js +48 -0
- package/dist/render-helpers.d.ts +9 -0
- package/dist/render-helpers.js +42 -0
- package/dist/runtime.d.ts +12 -0
- package/dist/runtime.js +36 -0
- package/dist/standalone-wallet.d.ts +21 -0
- package/dist/standalone-wallet.js +102 -0
- package/dist/types.d.ts +245 -0
- package/dist/types.js +7 -0
- package/dist/validate-config.d.ts +2 -0
- package/dist/validate-config.js +74 -0
- package/dist/vault-client.d.ts +45 -0
- package/dist/vault-client.js +122 -0
- package/dist/widget-runtime.js +348 -0
- package/dist/widget.html +33 -0
- package/package.json +43 -0
package/dist/widget.html
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en"><head>
|
|
3
|
+
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
4
|
+
<title>Widget</title>
|
|
5
|
+
<style>
|
|
6
|
+
:root { color-scheme: light dark; }
|
|
7
|
+
body { font-family: -apple-system, system-ui, sans-serif; margin: 0; padding: 16px; line-height: 1.5; }
|
|
8
|
+
h1 { font-size: 1.4rem; margin: 0 0 4px; } h2.panel-title { font-size: 1rem; margin: 0 0 8px; }
|
|
9
|
+
.card, .panel, .list-item { border: 1px solid color-mix(in srgb, currentColor 12%, transparent); border-radius: 10px; padding: 12px; margin: 8px 0; }
|
|
10
|
+
.label, .li-meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
|
|
11
|
+
.muted { opacity: 0.7; } .error { color: #dc2626; } p { white-space: pre-wrap; margin: 4px 0; }
|
|
12
|
+
.metric { font-size: 2rem; font-weight: 700; } .li-title { font-weight: 600; } .li-sub { opacity: 0.8; }
|
|
13
|
+
.bar-row { display: grid; grid-template-columns: 8rem 1fr 3rem; align-items: center; gap: 8px; margin: 4px 0; }
|
|
14
|
+
.bar { height: 10px; background: #6366f1; border-radius: 5px; } table { width: 100%; border-collapse: collapse; }
|
|
15
|
+
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
|
|
16
|
+
button { font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid currentColor; background: transparent; cursor: pointer; }
|
|
17
|
+
.dc-shell { display:flex; min-height:100vh; }
|
|
18
|
+
.dc-aside { width:160px; border-right:1px solid color-mix(in srgb, currentColor 12%, transparent); padding:8px; position:relative; }
|
|
19
|
+
.dc-content { flex:1; padding:16px; }
|
|
20
|
+
.dc-rail-group { font-size:0.7rem; text-transform:uppercase; letter-spacing:0.06em; opacity:0.5; margin:12px 6px 4px; }
|
|
21
|
+
.dc-rail-item { padding:7px 9px; border-radius:7px; cursor:pointer; font-size:0.9rem; display:flex; align-items:center; gap:6px; }
|
|
22
|
+
.dc-rail-item.active { background:color-mix(in srgb, currentColor 12%, transparent); font-weight:600; }
|
|
23
|
+
.dc-rail-item.locked { opacity:0.45; cursor:not-allowed; }
|
|
24
|
+
.dc-badge { margin-left:auto; font-size:0.6rem; background:#ff5e8a; color:#fff; border-radius:6px; padding:1px 5px; }
|
|
25
|
+
.dc-check { margin-left:auto; color:#1f9d55; }
|
|
26
|
+
.dc-gear { position:absolute; top:8px; right:8px; border:none; background:transparent; cursor:pointer; font-size:1rem; }
|
|
27
|
+
.dc-menu { position:absolute; top:34px; right:8px; border:1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius:9px; background:Canvas; padding:5px; z-index:5; }
|
|
28
|
+
.dc-menu-item { padding:6px 9px; border-radius:6px; cursor:pointer; font-size:0.85rem; white-space:nowrap; }
|
|
29
|
+
.dc-hero { text-align:center; padding:32px 16px; }
|
|
30
|
+
.dc-cta { margin-top:12px; padding:8px 18px; border-radius:9px; border:none; background:linear-gradient(135deg,#ff5e8a,#ff9d5c); color:#fff; font-weight:600; cursor:pointer; }
|
|
31
|
+
.dc-muted { opacity:0.7; }
|
|
32
|
+
</style></head>
|
|
33
|
+
<body><div id="app">Loading…</div></body></html>
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cef-ai/widget-runtime",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./build-tools": {
|
|
13
|
+
"types": "./dist/build-tools.d.ts",
|
|
14
|
+
"default": "./dist/build-tools.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@cere/embed-wallet": "0.23.4",
|
|
25
|
+
"@polkadot/keyring": "^14.0.3",
|
|
26
|
+
"@polkadot/util": "^14.0.3",
|
|
27
|
+
"@polkadot/util-crypto": "^14.0.3",
|
|
28
|
+
"aws4fetch": "^1.0.20",
|
|
29
|
+
"@cef-ai/vault-sdk": "3.0.0"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@types/node": "^20.11.0",
|
|
33
|
+
"esbuild": "^0.21.5",
|
|
34
|
+
"jsdom": "^24.0.0",
|
|
35
|
+
"typescript": "^5.4.0",
|
|
36
|
+
"vitest": "^1.6.0"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "node src/build.mjs && tsc -p tsconfig.json && node src/fix-extensions.mjs",
|
|
40
|
+
"test": "vitest run",
|
|
41
|
+
"typecheck": "tsc --noEmit"
|
|
42
|
+
}
|
|
43
|
+
}
|