Releases: seek-oss/playroom
v1.2.2
Patch Changes
-
#485
c1909bfThanks @michaeltaranto! - Snippets: Improve search filteringEnsure that the snippets filtering functionality prioritises
nameoverdescriptionand exact words matches over partial matches.
To further improve the predictability, Pascal Case names are treated as separate words.
v1.2.1
Patch Changes
-
#481
5ee8ccbThanks @michaeltaranto! - Editor: Ensure interactivity after toggling visibility via menuFixes an issue where the editor would remain
inertwhen hidden via the "Hide Code" button and then shown via the menu.
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.