File tree Expand file tree Collapse file tree 8 files changed +38
-20
lines changed Expand file tree Collapse file tree 8 files changed +38
-20
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ interface RootLayoutProps {
2+ children : React . ReactNode ;
3+ }
4+
5+ export default async function Layout ( { children } : RootLayoutProps ) {
6+ return (
7+ < html lang = "en" >
8+ < body > { children } </ body >
9+ </ html >
10+ ) ;
11+ }
Original file line number Diff line number Diff line change 1+ 'use client' ;
2+
3+ import { useEffect , useState } from 'react' ;
4+ import Script from 'next/script' ;
5+ import { getSandboxId } from '@/lib/env' ;
6+
7+ export default function Page ( ) {
8+ const [ sandboxId , setSandboxId ] = useState ( '' ) ;
9+
10+ useEffect ( ( ) => {
11+ setSandboxId ( getSandboxId ( window . location . origin ) ) ;
12+ } , [ ] ) ;
13+
14+ return (
15+ < div >
16+ < p > This page has no stylesheets inorder to test the embed-popup.js bundled styles</ p >
17+ { sandboxId && < Script src = "/embed-popup.js" data-lk-sandbox-id = { sandboxId } /> }
18+ </ div >
19+ ) ;
20+ }
Original file line number Diff line number Diff line change @@ -126,14 +126,14 @@ export const PopupView = ({
126126 } }
127127 animate = { {
128128 left : chatOpen && ( isCameraEnabled || isScreenShareEnabled ) ? '37.5%' : '50%' ,
129- scale : chatOpen ? 0.41 : 1 ,
129+ scale : chatOpen ? 0.275 : 1 ,
130130 top : chatOpen ? '12px' : '50%' ,
131131 translateY : chatOpen ? '0' : '-50%' ,
132132 transformOrigin : chatOpen ? 'center top' : 'center center' ,
133133 } }
134134 transition = { TILE_TRANSITION }
135135 className = { cn (
136- 'bg-bg1 dark:bg-bg1 pointer-events-none absolute z-10 flex aspect-[1.5] w-64 items-center justify-center rounded-2xl border border-transparent transition-colors' ,
136+ 'bg-bg1 dark:bg-bg1 pointer-events-none absolute z-10 flex aspect-square w-64 items-center justify-center rounded-2xl border border-transparent transition-colors' ,
137137 chatOpen && 'bg-bg1 border-separator1 drop-shadow-2xl'
138138 ) }
139139 >
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export default function Welcome() {
5454 } , [ iframeEmbedUrl ] ) ;
5555
5656 const popupTestUrl = useMemo ( ( ) => {
57- const url = new URL ( '/popup' , window . location . origin ) ;
57+ const url = new URL ( '/test/ popup' , window . location . origin ) ;
5858 return url . toString ( ) ;
5959 } , [ ] ) ;
6060
@@ -181,7 +181,7 @@ export default function Welcome() {
181181 < p className = "text-fg4 overflow-hidden text-sm text-ellipsis whitespace-nowrap" >
182182 Test your latest build at{ ' ' }
183183 < a
184- href = "/popup"
184+ href = { popupTestUrl }
185185 target = "_blank"
186186 rel = "noopener noreferrer"
187187 className = "underline"
Original file line number Diff line number Diff line change 33
44@custom-variant dark (& : is (.dark * ));
55
6- : root {
6+ : root,
7+ : host {
78 --fg0 : # 000000 ;
89 --fg1 : # 3b3b3b ;
910 --fg2 : # 4d4d4d ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const path = require('path');
33const Dotenv = require ( 'dotenv-webpack' ) ;
44
55module . exports = {
6+ mode : 'production' ,
67 entry : './components/embed-popup/standalone-bundle-root.tsx' , // Input file
78 output : {
89 path : path . resolve ( __dirname , 'public' ) ,
You can’t perform that action at this time.
0 commit comments