🥄 Develop, test and document your React story components faster.
MIT License
Published by tajo over 2 years ago
Published by tajo over 2 years ago
#191 3209be6
Thanks @tajo! - Upgrade to Vite 3. It should not be really a big breaking change for Ladle but we expose the whole vite.config.js
so you might run into some deprecations. Read more to see if this could impact you.
Vite 3 also ships as ESM module. That forces us to stop distributing @ladle/react-cjs
. We used it for our internal yarn pnp setup but we don't need it anymore. Pure ESM everywhere!
63c8821
Thanks @tajo! - Bump all repo dependencies do the latest and abondon cjs build&publish.#191 3209be6
Thanks @tajo! - Uses hook version for iframe window ref to prevent some re-renders. Fix viewport when navigating from a different story.
#193 e573adc
Thanks @tajo! - Improve the kebab casing of story names to convert MapSDK into map-sdk and not map-s-d-k.
#194 63c8821
Thanks @tajo! - Add margin 0 to iframe's body just as Stackblitz workaround
#191 3209be6
Thanks @tajo! - Find a free port for HMR server. Before, if there were multiple instances of Ladle, the client would always connect to the initial HMR server and reloads didn't work.
Published by tajo over 2 years ago
#190 21959e9
Thanks @tajo! - Add addon-width and iframe mode. You can set meta.width
and meta.iframed
to render stories inside of an iframe. This is useful for testing responsivness or components like modal that take full screen.
#188 2f142cc
Thanks @pdeslaur! - Fix compatibility issue with resolve.alias vite config to fix issue tajo/ladle#187.
#187 ebb1923
Thanks @tajo! - Move background color to negative zindex to support cases when components use some negative zindexes as well.
#189 f84bbde
Thanks @tajo! - Improve the performance of virtual stories modules. fs.promises.readFile much slower than fs.promises.readSync and it blocking CPU doesn't matter in our use case anyway. Also don't run the story watcher on the startup.
#190 21959e9
Thanks @tajo! - Fix: Export default title and meta params. They were not correctly applied before. This might change the story IDs (URLs and the sidebar labels) if you were using them before.
Published by tajo over 2 years ago
5abef5f
Thanks @tajo! - - Add ladle preview command to quickly open a serve for the build folder.
#173 ddaebfd
Thanks @GeorgeNagel! - Add engine settings and node restriction for @ladle/react so that install fails for users when node < 16.x
#170 04714c9
Thanks @GeorgeNagel! - Enforce that Node version >= v16.0.0. This causes a loud failure when installing ladle with an old version of Node, as opposed to silently failing and causing difficult-to-diagnose bugs.
#172 5049ce9
Thanks @tajo! - Fix Chrome (tab) re-opening for pnp environments..
Published by tajo over 2 years ago
Published by tajo over 2 years ago
#166 14a1619
Thanks @tajo! - Move React Context into a separate package so there is a single instance in the dev mode and useLadleContext hook works. Also, adding some documentation for the hook.
#166 14a1619
Thanks @tajo! - Align server.open more with the official Vite's API.
Updated dependencies [14a1619
]:
Published by tajo over 2 years ago
Published by tajo over 2 years ago
#162 ff731f5
Thanks @kazuma1989! - Load vite.config.ts the same way as Vite
(Only for the package maintainers) a new E2E packages is added.
Ladle was not able to handle vite.config.ts
the way Vite does.
For example, Ladle was not able to load vite.config.ts
which imported other TS modules.
(Only for the package maintainers) recognize a new e2e workspace with pnpm install
.
#156 0e316d6
Thanks @tajo! - Reuse the same tab for Ladle serve when the env is Google Chrome and OSX.
Published by tajo over 2 years ago
Published by tajo over 2 years ago
05bee5d
Thanks @tajo! - - Ladle now loads top-level vite.config.js/ts/mjs
and uses all its options.
config.mjs
removed and an error will be thrown, use vite.config.js
instead.enableFlow
option removed, you can create your own plugin (check our e2e/flow test).@ladle/react/serve
and @ladle/react/build
.--out
renamed to --outDir
to mimic Vite configuration, added -o
alias, outDir
moved to top-level in config.mjs
.--port
has alias -p
, port
moved to top-level in config.mjs
.vite.config.js
can be customized through viteConfig
and --viteConfig
.--base-url
removed, use base
in vite.config.js
.--open
removed, use server.open
in vite.config.js
.--sourcemap
removed, use build.sourcemap
in vite.config.js
.Published by tajo over 2 years ago
Published by tajo over 2 years ago
Published by tajo over 2 years ago
#134 2351356
Thanks @tajo! - Stories with controls defined through ArgTypes only (and not args at the same time) caused runtime error
#133 f0a42ad
Thanks @tajo! - Add explicit types for children of GlobalProvider (required for React 18 compatibility)
#137 515d069
Thanks @tajo! - Allow typescript typecast default export syntax when parsing stories.
#135 c027c8c
Thanks @tajo! - Surface all errors that happen during the story discovery (parsing) stage. Show them in the UI (a new landing page) and the CLI. Adds information how to deal with them as well.
#136 fa8db60
Thanks @tajo! - Undo some basic CSS resets from normalize/preflight that impact Ladle's UI when used.
#138 e2069f4
Thanks @tajo! - Add a section explaining the limitations of story syntax - some parts need to be static so they can be parsed.
#126 0a44aa2
Thanks @beckend! - feat: allow configuration of the whole Vite config.resolve object
Published by tajo over 2 years ago
Published by tajo over 2 years ago
enableFlow: true
.css.modules
options to ViteRelated issues: #78, #76, #70, #66, #59