Skip to content

Releases: google/playground-elements

v0.16.3

02 Aug 19:30
086b4c8

Choose a tag to compare

Added syntax highlighting for jsx and tsx modules.

v0.16.2

16 Jun 22:34

Choose a tag to compare

Added

  • Added support for compiling jsx and tsx modules.

v0.15.3

29 Mar 19:45
e3945f0

Choose a tag to compare

Fixed

  • Fixed the hiding of comments that surround a fold/hide code block from
    creating invisible readonly regions.

  • Refactored fold/hide marker logic so it doesn't add document history when
    clearing the prior fold/hide markers.

  • Fix typo and incorrectly documented event name in README. changed event
    should instead be change.

v0.15.2

24 Mar 23:51
50f5800

Choose a tag to compare

Added

  • Make hidden code blocks readonly to prevent accidental erasure.

  • Added Ctrl+/ or Cmd+/ hotkey for toggling line comments.

  • Added keyboard shortcut documentation to the playground-code-editor README.

v0.15.1

16 Mar 23:34
a7c9657

Choose a tag to compare

Changed

  • playground-preview now exposes the internal iframe via the iframe property.

v0.15.0

08 Mar 00:24
63f8549

Choose a tag to compare

Added

  • Added interactive code completions for TypeScript files
    (#243).

    Completions can be disabled by setting the no-completions attribute on
    <playground-ide>, <playground-file-editor>, or <playground-code-editor>
    components.

  • Added Ctrl-Space hotkey for triggering interactive code completions.

  • Added documentKey property to <playground-code-editor> which is
    used to keep track of individual CodeMirror document instances internally.
    Default behavior without setting a documentKey is unchanged.

    Use documentKey for fine control over the CodeMirror document instance. For
    example, to model changing a file.

Fixed

  • Normalize content-type response header to lowercase when matching filetypes.

  • Fixed undo history applying across files
    (#154).

    Previously all files shared the same document instance resulting in files
    sharing undo/redo history. Now each file has its own isolated internal
    document instance.

  • Fixed only a single closing script tag unescaping in html files using
    playground-ide
    (#251).

v0.14.6

21 Oct 17:00
a431eb5

Choose a tag to compare

Fixed

  • Fixed bug where files could not be deleted or renamed using MWC v0.25.2 or above.

v0.14.5

07 Oct 22:38
a66ce2f

Choose a tag to compare

Fixed

v0.14.4

07 Oct 01:49
6d5b391

Choose a tag to compare

Fixed

  • Fixed positioning of overlay that displays over previews when service workers
    are not available so that it is constrained to the preview, rather than the
    nearest containing positioned ancestor.

v0.14.3

07 Oct 00:33
cd4d1c0

Choose a tag to compare

Added

  • Added an overlay that will display over the preview when we detect that
    service workers are not available. One reason this can happen is using
    Playground in Firefox private browsing mode, which does not support service
    workers (https://bugzilla.mozilla.org/show_bug.cgi?id=1320796).

  • Added cursorPosition, cursorIndex, and tokenUnderCursor getters to
    <playground-code-editor>.

Changed

  • Upgraded dependencies, including CodeMirror.

Fixed

  • Fixed a bottleneck that prevented previews from loading until semantic
    TypeScript errors were computed. This should significantly improve the latency
    between updating a file and the new preview loading.

  • Fixed bug where parent window history entries were added every time the
    preview reloaded.

  • Improvements to service worker version updates:

    • The service worker will require less frequent updates going forward.
      Previously it needed updating for every playground-elements release. Now it
      only needs updating if the bytes of the service worker have changed between
      releases.

    • The default service worker scope has changed from
      <sandboxBaseUrl>/playground-project to
      <sandboxBaseUrl>/__playground_swfs_<serviceWorkerHash>. This should make service
      worker updates more reliable because old and new versions of service workers
      will no longer be in contention to control the same URLs.

    • Misc other small service worker robustness improvements, and additional
      logging to help debug future issues.