@personaliai/react-widget 0.1.0 → 0.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@personaliai/react-widget",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Embed the Chatty chat assistant directly in a React app — no iframe, calls the Chatty API directly. Same UI and behavior as the hosted embed.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1305,7 +1305,7 @@ export default function ChatWidgetCore({
1305
1305
  };
1306
1306
 
1307
1307
  if (loading) {
1308
- return <div className="flex h-screen items-center justify-center bg-transparent"><Loader2 className="size-6 animate-spin text-neutral-400" /></div>;
1308
+ return <div className="flex h-full items-center justify-center bg-transparent"><Loader2 className="size-6 animate-spin text-neutral-400" /></div>;
1309
1309
  }
1310
1310
 
1311
1311
  const mdComponents: Components = {
@@ -1337,7 +1337,7 @@ export default function ChatWidgetCore({
1337
1337
  const colorSchemeCss = buildColorSchemeCss(colorScheme, "#chatty-root");
1338
1338
 
1339
1339
  return (
1340
- <div ref={rootRef} id="chatty-root" className={`w-full h-screen flex flex-col overflow-hidden text-neutral-900 dark:text-neutral-100 font-sans style-${widgetStyle} ${isFullscreen ? "" : "rounded-2xl"}`} style={{ backgroundColor: primaryColor, touchAction: "manipulation", ...primaryColorCssVars(primaryColor) } as React.CSSProperties}>
1340
+ <div ref={rootRef} id="chatty-root" className={`w-full h-full flex flex-col overflow-hidden text-neutral-900 dark:text-neutral-100 font-sans style-${widgetStyle} ${isFullscreen ? "" : "rounded-2xl"}`} style={{ backgroundColor: primaryColor, touchAction: "manipulation", ...primaryColorCssVars(primaryColor) } as React.CSSProperties}>
1341
1341
  <style dangerouslySetInnerHTML={{ __html: `
1342
1342
  html, body {
1343
1343
  touch-action: manipulation;