Skip to content

Releases: itsjavi/storylite

v0.10.0

01 Sep 12:56
Compare
Choose a tag to compare

compare changes

💅 Refactors

  • ui: Better iframe isolation support. now with separate entry point: /canvas.html. This means you can have your own separated entrypoint .tsx file for the iframe, loading a different set of styles (omitting storylite's if you want).
    (c8256ca)

❤️ Contributors

  • Javi Aguilar

v0.9.0

01 Sep 11:16
Compare
Choose a tag to compare

compare changes

💅 Refactors

  • Add initial support for Component Story Format (CSF)
    (#39)

🏡 Chore

  • Update badges to include pkg size (034b01e)

❤️ Contributors

  • Javi Aguilar

v0.8.0

30 Aug 23:21
Compare
Choose a tag to compare

compare changes

💅 Refactors

  • Reorganize code files structure (dd6c055)
  • Replace global state manager with Zustand
    (a70f0a1)
  • Replace router context with Zustand, fixing rerenders on global state change
    (b9e4f4f)
  • Some configuration options have been changed, to have a more flat object

❤️ Contributors

  • Javi Aguilar

v0.7.1

30 Aug 16:51
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • ui: Add support for auto theme mode (system preference). Now the theme toggle rotates between Dark -> Light -> Auto.
    (7bc1833)
  • ui add useDetectTheme hook (2103223). The iframe document has improved theme detection support thanks to this.

💅 Refactors

  • ui Replace react-router-dom with our own minimalist hash-based Router implementation (2103223). We want to have more control on route resolution and rendering, while keeping the app simple, with minimal dependencies.
  • ui Add ability to configure dark theme using data-theme attributes (or a custom one via a new app config option "themeAttribute"|). (c8327b2)

🩹 Fixes

  • ui: Some hash resolving was not working as expected
    (247c2b5)
  • ui: UseDetectTheme not updating if it was not auto
    (a2c38c5)

❤️ Contributors

  • Javi Aguilar

v0.6.0

26 Aug 04:53
Compare
Choose a tag to compare

compare changes

💅 New Features

UI:
Complete rewrite of the addon API, with extensibility support, better mobile UI (da4a900).
The addon system has been completely rewritten, so now you can also provide your own or turn off default ones.
The UI also looks much better, specially on mobile.

To know more about the addon specification and how to write your own, take a look at the type reference, and the default addons definition.

scrnli_26_08_2023_06-39-24.mp4

❤️ Contributors

  • Javi Aguilar

v0.5.1

25 Aug 09:49
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • ui: Adjust some wrong styles (b09c0ac)

🏡 Chore

  • tools: Fix publish script (bf2911e)

❤️ Contributors

  • Javi Aguilar

v0.5.0

25 Aug 09:11
Compare
Choose a tag to compare

compare changes

💅 Refactors

  • storylite: Define a new api almost compatible with SB CSF3 (ee68a5f)
  • ui: Allow replacing the title entirely with the icon + other optimizations (32632fa)
  • ui: Implement an event-driven bidirectional communication system the iframe and the main window, using postMessage and event handlers (afaec92)
  • ui: Stop using useBrowserStorage hook and use a simpler api usable with postMessage (9867907)
  • ui: Improve UX and redefine all classes and styles to make the iframe more isolated, avoiding inheriting styles from the main UI and avoiding class name collisions (3b6303d)

🏡 Chore

  • releases: Scope npm publish to public packages (504d449)

❤️ Contributors

  • Javi Aguilar

v0.4.0

23 Aug 03:53
Compare
Choose a tag to compare

Upgrading from v0.3.x

Change the imports in your storylite.tsx entry point:

// old (v0.3.x):
import stories from 'virtual:storylite-stories'

// old (v0.4.x):
import stories from '@storylite/vite-plugin:stories'

Changelog

compare changes

🩹 Fixes

  • workflow: Quality checks fail after updated script (d41690d)
  • tools: Publint broken on CI (f0e64a2)

💅 Refactors

  • vite-plugin: Rework build process and rename virtual imports (0d77a69)

📖 Documentation

  • readme: Simplify contents (74c8487)

🏡 Chore

  • tools: Avoid to release examples as npm pkgs (41922a8)
  • tools: Avoid to release examples as npm pkgs (4f59718)
  • tools: Standarize scripts between @itsjavi repos (a23a760)
  • examples: Open on vite dev, change port to 7007 to follow SB port pattern (4f9e8cb)
  • tools: Better webcontainers compatibility (4a3fb5b)
  • vite-plugin: Bundle the additional dts in the main index.d.ts file (7d7c5d7)

❤️ Contributors

  • Javi Aguilar

v0.3.1

22 Aug 03:24
Compare
Choose a tag to compare

🚀 Enhancements

  • Add first version of the app (7a63bf1)

🩹 Fixes

  • deps: Update dependency lucide-react to ^0.263.0 (#6)
  • Linting issues (d4abcbf)
  • Pnpm dev (b9274f3)
  • deps: Update dependency lucide-react to ^0.264.0 (#18)
  • deps: Update dependency lucide-react to ^0.265.0 (#20)
  • Router has now fully static site support, fix navigation (2893e37)
  • vite-plugin: Add missing virtual type exports (#28)

💅 Refactors

  • Cleanup project and fix linting issues (af851c9)
  • Bundle with tsup and improve overall support (1bb4804)
  • Ditch separate config file, improve examples (7d05ce9)
  • storylite: Use context instead of virtual modules (93ec0dc)
  • Split ui from vite plugin (6ae02ef)

📖 Documentation

  • Improve readmes (ec4e077)
  • changeset: Chore: better dependencies definition (9279eb4)
  • changeset: Chore: better dependencies definition (a8501c9)
  • changeset: Minor changes (bb3d34a)
  • changeset: Add new entries (4c51edb)
  • changeset: Add new entries (6c34e8e)
  • changeset: Add new entries (ad8aa95)
  • changeset: Add new entries (bf9ce99)
  • Update readme (4793bab)
  • Update guidelines (656997f)

🏡 Chore

✅ Tests

🤖 CI

❤️ Contributors

  • Javi Aguilar
  • Jrson