@livelayer/react 0.6.2 → 0.8.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/index.d.ts +50 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +1459 -1409
- package/dist/styles.css +56 -0
- package/package.json +10 -9
package/dist/styles.css
CHANGED
|
@@ -123,6 +123,53 @@
|
|
|
123
123
|
top: auto;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
+
/* ── Embedded experience mode ──────────────────────────────────────
|
|
127
|
+
When `experienceMode="EMBEDDED"`, the widget renders inline within
|
|
128
|
+
the host container instead of as a fixed-position floating overlay.
|
|
129
|
+
The host owns size, position, and stacking — we just unstick the
|
|
130
|
+
widget from the viewport corners and let .ll-expanded fill its
|
|
131
|
+
parent. Locked to displayMode="expanded" in TS (minimize/hide are
|
|
132
|
+
floating-widget concepts that don't apply inline). */
|
|
133
|
+
.ll-widget[data-experience-mode="embedded"] {
|
|
134
|
+
position: relative;
|
|
135
|
+
inset: auto;
|
|
136
|
+
width: 100%;
|
|
137
|
+
height: 100%;
|
|
138
|
+
pointer-events: auto;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Disable the corner-anchoring rules in embedded mode regardless of
|
|
142
|
+
what `position` was passed (we keep the prop for API symmetry). */
|
|
143
|
+
.ll-widget[data-experience-mode="embedded"][data-position="bottom-right"],
|
|
144
|
+
.ll-widget[data-experience-mode="embedded"][data-position="bottom-left"],
|
|
145
|
+
.ll-widget[data-experience-mode="embedded"][data-position="top-right"],
|
|
146
|
+
.ll-widget[data-experience-mode="embedded"][data-position="top-left"] {
|
|
147
|
+
inset: auto;
|
|
148
|
+
left: auto;
|
|
149
|
+
right: auto;
|
|
150
|
+
top: auto;
|
|
151
|
+
bottom: auto;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* Override the mobile sheet behavior — no full-width bottom in embedded. */
|
|
155
|
+
.ll-widget[data-experience-mode="embedded"].ll-widget--mobile.ll-widget--expanded {
|
|
156
|
+
position: relative;
|
|
157
|
+
left: auto;
|
|
158
|
+
right: auto;
|
|
159
|
+
top: auto;
|
|
160
|
+
bottom: auto;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* The expanded panel fills its parent in embedded mode (host drives size).
|
|
164
|
+
No floating shadow chrome — the host card already has its own. */
|
|
165
|
+
.ll-widget[data-experience-mode="embedded"] .ll-expanded--desktop,
|
|
166
|
+
.ll-widget[data-experience-mode="embedded"] .ll-expanded--mobile {
|
|
167
|
+
width: 100%;
|
|
168
|
+
height: 100%;
|
|
169
|
+
border-radius: inherit;
|
|
170
|
+
box-shadow: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
126
173
|
/* ── Hidden mode: edge chevron tab ────────────────────────────────── */
|
|
127
174
|
/* Solid-black tab docked to the screen edge with a white chevron.
|
|
128
175
|
Designed to be unmistakably visible on light AND dark pages — no
|
|
@@ -576,6 +623,15 @@
|
|
|
576
623
|
background: rgba(0, 0, 0, 0.5);
|
|
577
624
|
}
|
|
578
625
|
|
|
626
|
+
/* Caller-controlled "transforming" overlay (avatar swap, voice swap, etc.).
|
|
627
|
+
Wins over every other overlay in the expanded surface — z-index sits
|
|
628
|
+
above the connecting/gesture overlays (4) and the local PIP (5) so the
|
|
629
|
+
caller-driven status takes priority while the swap is in flight. */
|
|
630
|
+
.ll-expanded__overlay--transforming {
|
|
631
|
+
z-index: 20;
|
|
632
|
+
background: rgba(0, 0, 0, 0.45);
|
|
633
|
+
}
|
|
634
|
+
|
|
579
635
|
.ll-expanded__overlay-text {
|
|
580
636
|
margin: 0;
|
|
581
637
|
font-size: 13px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livelayer/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "LiveLayer agent widget for React — avatar video, team switching, responsive layouts, full-fidelity embed",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -16,13 +16,19 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "vite build",
|
|
21
|
+
"prepublishOnly": "npm run build",
|
|
22
|
+
"test": "vitest run",
|
|
23
|
+
"test:watch": "vitest"
|
|
24
|
+
},
|
|
19
25
|
"peerDependencies": {
|
|
20
26
|
"react": ">=18.0.0",
|
|
21
27
|
"react-dom": ">=18.0.0"
|
|
22
28
|
},
|
|
23
29
|
"dependencies": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
30
|
+
"@livelayer/sdk": "workspace:*",
|
|
31
|
+
"livekit-client": "^2.17.3"
|
|
26
32
|
},
|
|
27
33
|
"devDependencies": {
|
|
28
34
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -43,10 +49,5 @@
|
|
|
43
49
|
"type": "git",
|
|
44
50
|
"url": "https://github.com/Fusion-Studios-Code/live-layer.git",
|
|
45
51
|
"directory": "packages/react"
|
|
46
|
-
},
|
|
47
|
-
"scripts": {
|
|
48
|
-
"build": "vite build",
|
|
49
|
-
"test": "vitest run",
|
|
50
|
-
"test:watch": "vitest"
|
|
51
52
|
}
|
|
52
|
-
}
|
|
53
|
+
}
|