Skip to content

Releases: seek-oss/playroom

v1.2.1

27 Feb 00:10
4d611a2

Choose a tag to compare

Patch Changes

  • #481 5ee8ccb Thanks @michaeltaranto! - Editor: Ensure interactivity after toggling visibility via menu

    Fixes an issue where the editor would remain inert when hidden via the "Hide Code" button and then shown via the menu.

v1.2.0

22 Feb 23:21
75398f0

Choose a tag to compare

Minor Changes

  • #479 6cc66fd Thanks @michaeltaranto! - frameSettings: Add support to custom frame props

    Add frameSettings config 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 custom FrameComponent for 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 6cc66fd Thanks @michaeltaranto! - types: Update PlayroomConfig and make available to consumers

    Enable type-safe configuration files by exporting PlayroomConfig type.

    // playroom.config.ts
    import type { PlayroomConfig } from 'playroom';
    
    export default {
      ...
    } satisfies PlayroomConfig;

v1.1.0

15 Feb 21:44
e426bcf

Choose a tag to compare

Minor Changes

  • #477 f2b799f Thanks @michaeltaranto! - Snippets: Update group treatment and add description support

    Improve affordance of snippet group by nesting snippets under sticky group headers.
    Snippets also now support an optional description property 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 group and name on 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 name and description properties instead, and omit group:

     [
       {
    -    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

04 Feb 22:45
912d738

Choose a tag to compare

Patch Changes

  • #474 7cf78e1 Thanks @mihkeleidast! - Swap @base-ui-components/react for @base-ui/react and update cmdk-base

  • #472 f8d7aae Thanks @Marcosld! - Fallback for randomUUID when not available in development (i.e. non secure context)

v1.0.5

23 Dec 00:51
d0e4806

Choose a tag to compare

Patch Changes

  • #467 fad3b7f Thanks @askoufis! - Remove unused code, remove unused deps, update sucrase to latest version

v1.0.4

19 Dec 02:01
5b0ed6b

Choose a tag to compare

Patch Changes

  • #465 63a512b Thanks @michaeltaranto! - Only show available themes and widths

    Ensure that themes or widths selected via the URL or from storage are valid options.

v1.0.3

12 Dec 03:44
03c20a7

Choose a tag to compare

Patch Changes

  • #461 67c2517 Thanks @michaeltaranto! - Design polish, refinements and fixes to internal system components.

  • #464 12dc5ba Thanks @michaeltaranto! - Ensure ref and inert usage is React 18 compatible

  • #461 67c2517 Thanks @michaeltaranto! - Introduce scroll afforance for frames area

    Add subtle gradient to edges of frames container to indicate scrollability when the number of frames exceeds the window width

  • #461 67c2517 Thanks @michaeltaranto! - Allow selection of frame error

    Enables a user to select and copy the text from a frame error message.

  • #462 65f7793 Thanks @michaeltaranto! - Only hide share actions from header without code

    The 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

27 Nov 03:07
0224f32

Choose a tag to compare

Patch Changes

v1.0.1

18 Nov 04:10
7d16e9b

Choose a tag to compare

Patch Changes

v1.0.0

07 Nov 02:31
bc63d7c

Choose a tag to compare

Major Changes

  • #453 abc492f Thanks @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