@medalsocial/meda 1.0.0 → 1.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/dist/chat/latency-badge.js +1 -1
- package/dist/chat/latency-breakdown.js +1 -1
- package/dist/chat/turn-card.js +1 -1
- package/dist/shell/app-shell-auth.d.ts +5 -0
- package/dist/shell/app-shell-auth.js +50 -0
- package/dist/shell/app-shell-chat.d.ts +6 -0
- package/dist/shell/app-shell-chat.js +9 -0
- package/dist/shell/app-shell-workspace.d.ts +10 -0
- package/dist/shell/app-shell-workspace.js +55 -0
- package/dist/shell/app-shell.d.ts +18 -2
- package/dist/shell/app-shell.js +17 -2
- package/dist/shell/context-rail.js +1 -1
- package/dist/shell/icon-rail.js +1 -1
- package/dist/shell/index.d.ts +1 -6
- package/dist/shell/index.js +0 -5
- package/dist/shell/{mobile → internal}/mobile-bottom-nav.d.ts +9 -1
- package/dist/shell/{mobile → internal}/mobile-bottom-nav.js +5 -2
- package/dist/shell/{mobile → internal}/mobile-drawers.d.ts +7 -1
- package/dist/shell/{mobile → internal}/mobile-drawers.js +18 -4
- package/dist/shell/internal/mobile-header.js +22 -0
- package/dist/shell/types.d.ts +35 -0
- package/dist/timeline/event-card.js +1 -1
- package/dist/timeline/live-indicator.js +1 -1
- package/dist/timeline/scrub-bar.js +1 -1
- package/package.json +5 -1
- package/dist/shell/mobile/mobile-header.js +0 -22
- package/dist/shell/navigation-area.d.ts +0 -4
- package/dist/shell/navigation-area.js +0 -4
- package/dist/shell/public.d.ts +0 -16
- package/dist/shell/public.js +0 -20
- package/dist/shell/shell-app-rail.d.ts +0 -18
- package/dist/shell/shell-app-rail.js +0 -27
- package/dist/shell/shell-auth-frame.d.ts +0 -22
- package/dist/shell/shell-auth-frame.js +0 -60
- package/dist/shell/shell-desktop-panel-dock.d.ts +0 -14
- package/dist/shell/shell-desktop-panel-dock.js +0 -43
- package/dist/shell/shell-frame.d.ts +0 -13
- package/dist/shell/shell-frame.js +0 -4
- package/dist/shell/shell-module-nav.d.ts +0 -29
- package/dist/shell/shell-module-nav.js +0 -16
- package/dist/shell/shell-panel-rail.d.ts +0 -9
- package/dist/shell/shell-panel-rail.js +0 -17
- package/dist/shell/shell-scrollable-content.d.ts +0 -9
- package/dist/shell/shell-scrollable-content.js +0 -7
- package/dist/shell/shell-state.d.ts +0 -39
- package/dist/shell/shell-state.js +0 -135
- package/dist/shell/shell-tab-bar.d.ts +0 -18
- package/dist/shell/shell-tab-bar.js +0 -27
- package/dist/shell/workbench-layout.d.ts +0 -10
- package/dist/shell/workbench-layout.js +0 -29
- package/dist/styles.css +0 -26
- /package/dist/shell/{mobile → internal}/mobile-header.d.ts +0 -0
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
function joinClasses(...values) {
|
|
3
|
-
return values.filter(Boolean).join(' ');
|
|
4
|
-
}
|
|
5
|
-
function getWorkbenchMaxWidth(viewportBand) {
|
|
6
|
-
if (viewportBand === 'desktop')
|
|
7
|
-
return 1440;
|
|
8
|
-
if (viewportBand === 'wide')
|
|
9
|
-
return 1760;
|
|
10
|
-
if (viewportBand === 'ultrawide')
|
|
11
|
-
return 1920;
|
|
12
|
-
return undefined;
|
|
13
|
-
}
|
|
14
|
-
export function WorkbenchLayout({ viewportBand, main, aside, toolbar, className, }) {
|
|
15
|
-
const maxWidth = getWorkbenchMaxWidth(viewportBand);
|
|
16
|
-
const layout = !aside
|
|
17
|
-
? 'single'
|
|
18
|
-
: viewportBand === 'mobile' || viewportBand === 'tablet'
|
|
19
|
-
? 'stacked'
|
|
20
|
-
: viewportBand === 'desktop'
|
|
21
|
-
? 'split'
|
|
22
|
-
: 'multi-zone';
|
|
23
|
-
const columnStyle = layout === 'split'
|
|
24
|
-
? { gridTemplateColumns: 'minmax(0, 1fr) minmax(280px, 320px)' }
|
|
25
|
-
: layout === 'multi-zone'
|
|
26
|
-
? { gridTemplateColumns: 'minmax(0, 1fr) minmax(300px, 360px)' }
|
|
27
|
-
: undefined;
|
|
28
|
-
return (_jsxs("section", { "data-testid": "workbench-layout", "data-band": viewportBand, className: joinClasses('mx-auto flex w-full flex-col gap-6', className), style: maxWidth ? { maxWidth: `${maxWidth}px` } : undefined, children: [toolbar ? _jsx("div", { "data-testid": "workbench-toolbar", children: toolbar }) : null, _jsxs("div", { "data-testid": "workbench-columns", "data-layout": layout, className: joinClasses('w-full gap-5', layout === 'stacked' ? 'flex flex-col' : layout === 'single' ? 'flex flex-col' : 'grid'), style: columnStyle, children: [_jsx("div", { "data-testid": "workbench-main", className: "min-w-0", children: main }), aside ? (_jsx("aside", { "data-testid": "workbench-aside", className: "min-w-0", children: aside })) : null] })] }));
|
|
29
|
-
}
|
package/dist/styles.css
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--meda-shell-panel-dock-radius: var(--radius-4xl, 1.5rem);
|
|
3
|
-
--meda-shell-panel-dock-shadow: var(--shadow-panel-elevated, 0 32px 90px rgb(0 0 0 / 0.45));
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
/* VoiceOrb (WebGL): minimal container styles — visual identity lives in the GLSL shader. */
|
|
7
|
-
.meda-voice-orb {
|
|
8
|
-
background: transparent;
|
|
9
|
-
border: 0;
|
|
10
|
-
padding: 0;
|
|
11
|
-
isolation: isolate;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
border-radius: 9999px;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
position: relative;
|
|
16
|
-
}
|
|
17
|
-
.meda-voice-orb[disabled] {
|
|
18
|
-
cursor: not-allowed;
|
|
19
|
-
opacity: 0.6;
|
|
20
|
-
}
|
|
21
|
-
.meda-voice-orb canvas {
|
|
22
|
-
display: block;
|
|
23
|
-
width: 100% !important;
|
|
24
|
-
height: 100% !important;
|
|
25
|
-
pointer-events: none;
|
|
26
|
-
}
|
|
File without changes
|