@livelayer/react 0.9.7 → 0.10.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/styles.css CHANGED
@@ -114,6 +114,22 @@
114
114
  }
115
115
  /* "custom" position relies on consumer-supplied style. */
116
116
 
117
+ /* Floating chrome (HiddenLayout / MinimizedLayout) — portaled to
118
+ document.body so its fixed-position chrome anchors to the viewport
119
+ regardless of where the package is rendered in the host's DOM tree.
120
+ Without this, EMBEDDED hosts that wrap the slot in a transformed
121
+ ancestor (translateZ, scale, etc.) capture the fixed chrome and
122
+ pin it to the slot rather than the viewport edge — that's what
123
+ made the side-tab and audio-waveform pill unreachable in EMBEDDED
124
+ pre-0.10.0. The .ll-widget base rules above apply unchanged. */
125
+ .ll-widget--floating {
126
+ position: fixed;
127
+ pointer-events: none;
128
+ }
129
+ .ll-widget--floating > * {
130
+ pointer-events: auto;
131
+ }
132
+
117
133
  /* Mobile: minimized + expanded ignore position, always full-width bottom. */
118
134
  .ll-widget--mobile.ll-widget--minimized,
119
135
  .ll-widget--mobile.ll-widget--expanded {
@@ -170,6 +186,23 @@
170
186
  box-shadow: none;
171
187
  }
172
188
 
189
+ /* When an EMBEDDED widget is in hidden/minimized state, the main
190
+ container inside the host slot is empty (HiddenLayout /
191
+ MinimizedLayout are portaled to document.body). Fade the empty
192
+ container so a transitioning host slot doesn't expose blank space
193
+ in the cinematic moment. The 0.25s opacity matches the floating
194
+ chrome's mount fade for a coordinated handoff. */
195
+ .ll-widget[data-experience-mode="embedded"][data-display-mode="expanded"] {
196
+ opacity: 1;
197
+ transition: opacity 0.25s ease;
198
+ }
199
+ .ll-widget[data-experience-mode="embedded"][data-display-mode="hidden"],
200
+ .ll-widget[data-experience-mode="embedded"][data-display-mode="minimized"] {
201
+ opacity: 0;
202
+ pointer-events: none;
203
+ transition: opacity 0.25s ease;
204
+ }
205
+
173
206
  /* ── Hidden mode: edge chevron tab ────────────────────────────────── */
174
207
  /* Solid-black tab docked to the screen edge with a white chevron.
175
208
  Designed to be unmistakably visible on light AND dark pages — no
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livelayer/react",
3
- "version": "0.9.7",
3
+ "version": "0.10.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",