Releases: seek-oss/playroom
v1.2.1
v1.2.0
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;
v1.1.0
Minor Changes
-
#477
f2b799fThanks @michaeltaranto! - Snippets: Updategrouptreatment and adddescriptionsupportImprove affordance of snippet
groupby nesting snippets under sticky group headers.
Snippets also now support an optionaldescriptionproperty to help users differentiate similar snippets.Migration
While not a breaking change, this update does change the way snippets are rendered and how groups are treated, so some migration may be desired.
Previously snippets rendered the
groupandnameon the same line.
For example:[ { "group": "Button", "name": "Small", "code": "..." }, { "group": "Button", "name": "Large", "code": "..." } ]resulted in:
--------------- Button Small Button Large ---------------Groups are now elevated to sticky headers, with snippets nested underneath:
--------------- Button --------------- Small Large ---------------To avoid grouping migrate to use
nameanddescriptionproperties instead, and omitgroup:[ { - group: 'Button', + name: 'Button', - name: 'Small', + description: 'Small', code: '...', }, { - group: 'Button', + name: 'Button', - name: 'Large', + description: 'Large', code: '...', }, ]which results in the same UX as previously.
v1.0.7
v1.0.5
v1.0.4
Patch Changes
-
#465
63a512bThanks @michaeltaranto! - Only show available themes and widthsEnsure that themes or widths selected via the URL or from storage are valid options.
v1.0.3
Patch Changes
-
#461
67c2517Thanks @michaeltaranto! - Design polish, refinements and fixes to internal system components. -
#464
12dc5baThanks @michaeltaranto! - Ensurerefandinertusage is React 18 compatible -
#461
67c2517Thanks @michaeltaranto! - Introduce scroll afforance for frames areaAdd subtle gradient to edges of frames container to indicate scrollability when the number of frames exceeds the window width
-
#461
67c2517Thanks @michaeltaranto! - Allow selection of frame errorEnables a user to select and copy the text from a frame error message.
-
#462
65f7793Thanks @michaeltaranto! - Only hide share actions from header without codeThe header actions in the top right are now available on page load.
This enables the selection of frames and/or themes before any code is added to the editor.The share and preview actions are still hidden and revealed when code is entered into the editor.
v1.0.2
Patch Changes
-
#459
76b5304Thanks @michaeltaranto! - Ensure Playroom processes only its own stylesFixes an issue where consuming projects using Vanilla Extract may suffer from double processing of generated styles.
v1.0.1
v1.0.0
Major Changes
-
#453
abc492fThanks @michaeltaranto! - This release features a major design overhaul, modernising the interface and introducing some exciting new features.
Virtual file management now enables switching between multiple designs locally in the browser, while still supporting collaboration via shareable links.Highlights of the new interface include:
- Designs autosave locally in the browser, using the title as a name
- Return visits no longer restore the last code, instead listing locally saved designs as an option (or just start fresh)
- Add "Open Playroom" option (with thumbnail previews) to make switching between designs easier
- Add "New Playroom" option to quickly start fresh
- Add "Duplicate" option to start a design variation
- Improved affordance of editor actions, i.e. snippets, format, as well as cursor and selection actions.
- Add "Show/Hide UI" option (with keyboard shortcut) to make focusing on design frames easier
- Replace splash screen on Preview mode with dismissable header
- Add "Edit" link to Preview mode header to make returning code easier
- Add footer to Preview mode when embedding links
- Improve affordance of syntax errors, including jump to line feature