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
..
StimulusWrapper.tsx Refactor Stimulus util & module export 2023-10-19 07:28:27 +01:00
Welcome.stories.mdx Upgrade Storybook setup, with latest release, less boilerplate 2022-02-24 21:22:45 +10: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 Fix Storybook pattern library proxying in Node 18 2023-02-15 22:52:49 +10:00
preview.js Disable ESLint prefer-default-export globally (#8577) 2022-05-31 22:47:50 +01:00
preview.scss Fix Storybook rendering of body element 2023-04-19 13:38:23 +01:00
stories.d.ts Upgrade Storybook setup, with latest release, less boilerplate 2022-02-24 21:22:45 +10:00