wagtail/client
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
..
scss Use a smaller font size for page listing headers 2023-10-19 02:13:10 -04:00
src Refactor Stimulus util & module export 2023-10-19 07:28:27 +01:00
storybook Refactor Stimulus util & module export 2023-10-19 07:28:27 +01:00
tests Bump @babel/traverse from 7.17.3 to 7.23.2 in /client/tests/integration 2023-10-18 08:50:47 +11:00
README.md
extract-translatable-strings.js
package-lock.json
tailwind.config.js
webpack.config.js Migrate publishing schedule dialog field resets to Stimulus 2023-10-19 08:00:15 +11:00

README.md

Wagtail client-side components

This library aims to give developers the ability to subclass and configure Wagtail's UI components.

Usage

npm install wagtail
import { Explorer } from 'wagtail';
// [...]
<Explorer />;

Development

# From the project root, start the webpack + styles compilation.
npm run start

You will also need:

Releases

The front-end is bundled at the same time as the Wagtail project. This package also aims to be available separately on npm as wagtail.