Skip to content

Releases: google/playground-elements

v0.7.0

31 Mar 02:07
Compare
Choose a tag to compare

Changed

  • [BREAKING] Replaced files getter/setter on <playground-project> and
    <playground-ide> with config getter/setter. This property has the same
    type as the JSON config, and can be used to save/restore the state of all
    files and other configuration.

Fixed

  • TypeScript errors of the form Property '...' does not exist on type and
    Cannot find name '...' are now suppressed (temporarily until d.ts files
    are fetched).

v0.6.6

29 Mar 16:59
Compare
Choose a tag to compare

Fixed

  • Fixed missing @types/codemirror dependency.

v0.6.5

29 Mar 16:45
Compare
Choose a tag to compare

Fixed

  • Fixed missing lib/codemirror.js file in NPM package.

v0.6.4

29 Mar 16:21
Compare
Choose a tag to compare

Added

  • TypeScript errors are now displayed in the editor with red underlines. A
    tooltip displaying the error is shown on hover.

    • Note that only basic/syntactic errors are currently shown, because typings
      of dependencies are not currently available to compilation.
  • Added CSS property --playground-error-border, the border-bottom of code
    spans with an error (2px red dashed by default).

  • Added CSS shadow part diagnostic-tooltip for styling the tooltip that
    appears when hovering over an error.

v0.6.3

25 Mar 03:27
Compare
Choose a tag to compare

Added

  • Added optional hidden property/attribute which prevents a file from being
    displayed in the tab bar.

  • Added support for JSON files with syntax highlighting.

  • Added extends property to JSON config file, an optional URL of another JSON
    config file to extend from. Useful for setting side-wide defaults.

Fixed

  • Fixed bug where editor did not immediately switch to newly created files.

  • Fixed bug where label was ignored in tab bar.

v0.6.2

03 Mar 03:08
Compare
Choose a tag to compare

Added

  • Added content and contentType as optional properties of the JSON manifest.

Changed

  • License headers shortened to concise SPDX style.

Fixed

  • Fixed infinite loop that could occur when switching between two files that
    both contain code folding/hiding regions.

v0.6.1

02 Mar 05:14
Compare
Choose a tag to compare

Added

v0.6.0

19 Feb 21:35
Compare
Choose a tag to compare
  • [BREAKING] Leading whitespace that is common to all lines of slotted
    <script> files will now be trimmed, along with empty leading/trailing lines.
    To disable this behavior, add the preserve-whitespace attribute.

Added

  • Added --playground-floating-controls-color to control the highlight color of
    buttons and text inputs in floating add/remove/rename file controls. Defaults
    to var(--playground-highlight-color, #6200ee).

Fixed

  • Playground can now be imported from Skypack.

  • Fix bugs where --playground-tab-bar-background and
    --playground-tab-bar-foreground-color did not apply correctly.

v0.5.0

30 Jan 17:14
Compare
Choose a tag to compare

Changed

  • [BREAKING] When both projectSrc and files are set, it is now the most
    recently set
    property that wins. Previously, files always won.

  • <playground-preview> now auto-reloads after 300ms, previously 500ms.

Added

  • <playground-project> now emits a compileStart and compileDone event.

Removed

  • [BREAKING] <playground-project> no longer emits a contentChanged event.

v0.4.3

22 Jan 03:47
Compare
Choose a tag to compare

Fixed

  • Do not add ?module parameter to import map URLs for bare module specifiers,
    only to fallback unpkg.com URLs.

  • Prevent z-index issues with CodeMirror scrollbars and other elements by
    using a separate stacking context.

Changed

  • <playground-preview> now has a default label (called location) of
    "Result".