Minor Changes
-
#479
6cc66fdThanks @michaeltaranto! - frameSettings: Add support to custom frame propsAdd
frameSettingsconfig option to enable per-frame toggleable settings.
Allows playroom owners to define boolean controls (e.g., RTL layout, debugging touch targets, etc) that users can independently toggle for each frame, with values passed to the customFrameComponentfor conditional rendering.Example Usage
// playroom.config.js export default { ..., frameSettings: [ { id: 'rtl', label: 'RTL Layout', defaultValue: false } ], }; // FrameComponent.tsx export default ({ frameSettings, children }) => ( <ThemeProvider rtl={frameSettings?.rtl}>{children}</ThemeProvider> );
Patch Changes
-
#479
6cc66fdThanks @michaeltaranto! - types: UpdatePlayroomConfigand make available to consumersEnable type-safe configuration files by exporting
PlayroomConfigtype.// playroom.config.ts import type { PlayroomConfig } from 'playroom'; export default { ... } satisfies PlayroomConfig;