0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-28 17:13:31 +01:00
wagtail/client/storybook
LB Johnston 1da3e5fde7 Refactor Stimulus util & module export
- Accessing constructor was confusing and createController is not a core requirement
- Avoid modifying the base Stimulus application class
- Expose `window.StimulusModule` as the module output
- Expose `window.wagtail.app` as the Wagtail Stimulus application instance
- Rename root element variable to `root` in initStimulus (so we do not conflict with potential action option registration that uses `element` variable names)
- Pull in the wagtail.components to the same core.js file and add JSDoc for exposed global
- Relates to #10197
2023-10-19 07:28:27 +01:00
..
main.js Allow all stories within subfolders of shared templates to appear in the same section 2023-06-26 13:55:07 +01:00
middleware.js
preview.js
preview.scss Fix Storybook rendering of body element 2023-04-19 13:38:23 +01:00
StimulusWrapper.tsx Refactor Stimulus util & module export 2023-10-19 07:28:27 +01:00
stories.d.ts
Welcome.stories.mdx