-
Notifications
You must be signed in to change notification settings - Fork 4
*Changelog
Bryce Russell edited this page Apr 21, 2023
·
57 revisions
- Thanks @stephansama! - Update API for
<Paginate>
to match Astro'spaginate()
for less confusion and better typing- Slot arguments
last
andcurrent
have been renamed tolastPage
andcurrentPage
- Added
url.current
,url.prev
, andurl.next
to slot argument
- Slot arguments
- Added
<Wrap>
, which allows you to conditionally wrap a component
- Remove
console.log()
from debugging
- Fixed bug with
<Breadcrumb>
wherehref
attributes sometimes did not start with a slash/
- Rename
<Map>
to<For>
, the name is more familiar and fits the newloop
prop better - Final refactor on
<Switch>
, fixed bug withdefault
slot andname
prop, no more unnecessary rendering - Tiny refactor on
<CodeCopy>
, should be a bit faster
Suppose to be v0.25
but accidentally patched twice
- Renamed
<Show>
to<When>
- Total refactor on
<When>
to use all props when deciding to render, this lets you:- Pass variables like
<When {variable}>
- Pass multiple props
<When expr={true} this={false}>
- Pass variables like
- Tiny refactor on
<Switch>
, stop unnecessary slot rendering - Tiny refactor on
<TableOfContents>
, add ability to pass attributes to first<ol>
tag and<a>
tags - Simplified
<Link>
and<Navigation>
by removingmode
prop
- Added
loop
prop to<Map>
- Tiny update to
<Switch>
, created documentation - Fix import error in
<CodeCopy>
- Rename
<IconSwitch>
to<IconSwitcher>
to make it stand out more from<Switch>
- Added
<Show>
, acts like a conditional/ternary statement mostly used for default<Switch>
- Major refactor on
<Switch>
- Made
name
prop and its behavior optional - by default expects a
<Show>
component as a child with a number as a named slot - Filter/sorts numbered named slots and going in order will only render the first slot that contains content
- Made
- Refactor
<CodeCopy>
to use<template>
- Added
<slot />
to<NoScriptProperty>
and made the included hide class optional
- Added
<Switch>
component, uses named slots like a switch statement - Tiny refactor on
<Map>
, added index to slot function arguments and made array detection more robust - Moved
<keyboardProp>
and<NetworkProperty>
to component archive, too niche/specialized - Rename dynamic CSS scripts from
{name}Prop
to{name}Property
- Tiny refactor on
<ScrollProperty>
and<MouseProperty>
, added ability to override default variable names - Move
<NoScriptProperty>
to style components - Added
default
prop to<NoScriptProperty>
Fix error with types not being found when importing, also fixes prop typing- Added
<Network>
prop back
0.0.20
- Add start for
<TableOfContents>
, on pause until slots can be passed recursively or will have to useastro-json-element
- Tiny refactor on
<IconSwitch>
, removed opinionated defaults
0.0.18-19
- Fix import typos that only showed after publishing
- Temporarily removed
<NetworkProp>
from exporting due to weird bug (It was a space in the project folder)
0.0.17
- Added
<CodeCopy>
a copy code button that gets attached to code blocks - Renamed
<ThemeIcon>
to<IconSwitch>
because it also works with<CodeCopy>
- Rename
<ThemeToggle>
to<MultiThemeToggle>
to be more consise and match<DarkThemeToggle>
0.0.16
- Old
<ThemeToggle>
renamed<DarkThemeToggle>
, a simpler theme toggle for websites with only light/dark - Refactor
<ThemeToggle>
into a more advanced multi theme script - Refactor
<AnimatedSpriteSheet>
and<ThemeIcon>
into new more consistent pattern for style components
0.0.15
- Added
<ThemeToggle>
a dark mode button/script - Added
<ThemeIcon>
, animated icon switch on theme change, shows an icon related to the current theme
0.0.14
- Remove trailing slashes from
<Breadcrumb>
url
- Refactor
<NetworkProp>
0.0.13
- Added ability to target page number for alternative render inside
<Pagination>
using slots - Fix package.json
0.0.12
- Added
defaults
prop to<Navigation>
- Fix repository link in package.json
0.0.11
- Added
before
andafter
prop to<Pagination>
to give more control over which links are displayed - Added
hide
prop to<AnimatedSpriteSheet>
as an option to hide the default animation element
0.0.10
- Fixed
<AnimatedSpriteSheet>
, all spritesheet orientations should now work (horizontal, vertical, and grids)
0.0.9
- Added
<AnimatedSpriteSheet>
, a CSS stylesheet template for animating spritesheets using CSS keyframe animations - Refactor
<Map>
component- Data is now passed like this:
<Map {...array}>
- Ditch prop abstraction of
Array.prototype
methods likereverse
andfilter
in favor of using.
dot notation when passing array - Added ability use named slots to target an index for alternative render
- Data is now passed like this: