Skip to content

Commit e3924b9

Browse files
committed
feat(screenshot-viewer): add screenshot viewer component with styles and functionality
1 parent 1b48c05 commit e3924b9

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

packages/visualizer/src/component/universal-playground/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
createStorageProvider,
2020
detectBestStorageType,
2121
} from './providers/storage-provider';
22+
import { defaultMainButtons } from '../../utils/constants';
2223

2324
const { Text } = Typography;
2425

@@ -62,6 +63,13 @@ export function UniversalPlayground({
6263
const { config } = useEnvConfig();
6364
const [sdkReady, setSdkReady] = useState(false);
6465

66+
// Initialize form with default type on mount
67+
useEffect(() => {
68+
form.setFieldsValue({
69+
type: defaultMainButtons[0],
70+
});
71+
}, [form]);
72+
6573
// Initialize SDK ID on mount for remote execution
6674
useEffect(() => {
6775
const initializeSDK = async () => {

packages/visualizer/src/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import './component/playground/index.less';
2-
import './component/universal-playground/index.less';
3-
import './components/screenshot-viewer/index.less';
4-
51
export {
62
type AnimationScript,
73
type ReplayScriptsInfo,
@@ -37,7 +33,7 @@ export { ContextPreview } from './component/context-preview';
3733
export { PromptInput } from './component/prompt-input';
3834
export { Player } from './component/player';
3935
export { Blackboard } from './component/blackboard';
40-
export { default as ScreenshotViewer } from './components/screenshot-viewer';
36+
export { default as ScreenshotViewer } from './component/screenshot-viewer';
4137

4238
// Export playground utilities
4339
export {

0 commit comments

Comments
 (0)