Skip to content

*Changelog

Bryce Russell edited this page Apr 21, 2023 · 57 revisions

0.0.30

  • Thanks @stephansama! - Update API for <Paginate> to match Astro's paginate() for less confusion and better typing
    • Slot arguments last and current have been renamed to lastPage and currentPage
    • Added url.current, url.prev, and url.next to slot argument

0.0.29

  • Added <Wrap>, which allows you to conditionally wrap a component

0.0.28

  • Remove console.log() from debugging

0.0.27

  • Fixed bug with <Breadcrumb> where href attributes sometimes did not start with a slash /
  • Rename <Map> to <For>, the name is more familiar and fits the new loop prop better
  • Final refactor on <Switch>, fixed bug with default slot and name prop, no more unnecessary rendering
  • Tiny refactor on <CodeCopy>, should be a bit faster

0.0.26

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}>
  • 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 removing mode prop

0.0.24

  • Added loop prop to <Map>
  • Tiny update to <Switch>, created documentation
  • Fix import error in <CodeCopy>

0.0.23

  • 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
  • Refactor <CodeCopy> to use <template>
  • Added <slot /> to <NoScriptProperty> and made the included hide class optional

0.0.22

  • 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>

0.0.21

  • Fix error with types not being found when importing, also fixes prop typing
  • Added <Network> prop back

Older Versions

0.0.20

  • Add start for <TableOfContents>, on pause until slots can be passed recursively or will have to use astro-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

0.0.13

0.0.12

0.0.11

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 like reverse and filter in favor of using . dot notation when passing array
    • Added ability use named slots to target an index for alternative render