Releases: google/playground-elements
v0.7.0
Changed
- [BREAKING] Replaced
files
getter/setter on<playground-project>
and
<playground-ide>
withconfig
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 untild.ts
files
are fetched).
v0.6.6
v0.6.5
v0.6.4
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.
- Note that only basic/syntactic errors are currently shown, because typings
-
Added CSS property
--playground-error-border
, theborder-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
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
Added
- Added
content
andcontentType
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
Added
- Added
playground-hide
andplayground-fold
region comments that hide and
fold regions of a file, while still compiling and serving them, to help users
focus on the relevant code. See
https://github.com/PolymerLabs/playground-elements#hiding--folding for
details.
v0.6.0
- [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 thepreserve-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
tovar(--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
Changed
-
[BREAKING] When both
projectSrc
andfiles
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 acompileStart
andcompileDone
event.
Removed
- [BREAKING]
<playground-project>
no longer emits acontentChanged
event.
v0.4.3
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 (calledlocation
) of
"Result"
.