Skip to content

Latest commit

 

History

History
826 lines (376 loc) · 51.7 KB

CHANGELOG.md

File metadata and controls

826 lines (376 loc) · 51.7 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.2.2 (2024-09-14)

Note: Version bump only for package stimulus-library

1.2.1 (2024-08-14)

Note: Version bump only for package stimulus-library

1.2.0 (2024-04-17)

Features

  • CountdownController: New configuration value padZeros to control whether hours, minutes and seconds are output as zero-padded or not. Also fixed removeUnused behaviour. (#351) (9a4ad0b)

1.1.0 (2024-03-15)

Features

  • AutoSubmitFormController: Allow AutoSubmitFormController to work with elements outside the form annotated with the form attribute (#330) (d37c0ca), closes #329

1.0.7 (2024-03-15)

Note: Version bump only for package stimulus-library

1.0.6 (2023-12-13)

Bug Fixes

  • SignalControllers: Fix bug preventing OR expressions ever returning true (10bffb2)

1.0.5 (2023-12-13)

Note: Version bump only for package stimulus-library

1.0.4 (2023-10-13)

Bug Fixes

  • NestedFormController _wrapperClass value (fef66c2)
  • NestedFormController flipped error logic (963de08)

1.0.3 (2023-09-22)

Note: Version bump only for package stimulus-library

1.0.2 (2023-08-17)

Note: Version bump only for package stimulus-library

1.0.1 (2023-08-17)

Features

  • useLocalStorage: useLocalStorage mixin now listens for storage events and updates the key accordingly. (b78833f)

1.0.0-alpha.8 (2023-08-17)

Features

  • useLocalStorage: Add onChange callback to useLocalStorage mixin. (e928c9d)

1.0.0-alpha.7 (2023-08-17)

Note: Version bump only for package stimulus-library

1.0.0-alpha.6 (2023-06-15)

Bug Fixes

  • FormDirtyConfirmNavigationController: Handle turbo form submissions (bbf6b93)

1.0.0-alpha.5 (2023-06-15)

Bug Fixes

  • FormDirtyConfirmNavigationController: Fix bug where form submissions were asking for confirmation. (a9f869e)

1.0.0-alpha.4 (2023-06-10)

Features

  • useTextSelection: A mixin that allows you to be notified when a user selects or deselects something on the page. (bfa8369)

1.0.0-alpha.3 (2023-06-10)

Features

  • FormDirtyConfirmNavigationController: New controller to prevent users from accidentally leaving a page that has unsaved changes on it (2c6f7d3)
  • useDirtyFormTracking: New mixin to track whether a form or individual input have been changed from its original value (1dc8bbd)

1.0.0-alpha.2 (2023-03-10)

Note: Version bump only for package stimulus-library

1.0.0-alpha.1 (2023-03-10)

Bug Fixes

  • Fix dependencies for sub-packages

1.0.0-alpha.0 (2023-03-09)

Bug Fixes

  • SignalInputController: Fix wrong event triggered when SignalInputController set to synthesize input events when they sync values (a0fde82)

Features

  • TweenNumberController: Add options to allow formatting of the tweened number (b660317)

0.9.11 (2023-03-06)

Features

  • SignalInputController: Add stimulus config values to allow SignalInputController to optionally synthesize input and change events when they sync values (c694625)

0.9.10 (2023-03-06)

Features

  • SignalInputController: Add functionality so that two inputs with SignalInputControllers on them can sync their values (e145df9)

0.9.9 (2023-02-20)

Bug Fixes

  • Type declarations weren't being exported (1f877b3)

0.9.8 (2023-02-18)

Bug Fixes

  • Exports: Fix missing export for useResizeObserver mixin (cc01f5e)

0.9.7 (2023-02-07)

Features

  • Controllers: TurboFrameHistoryController - a controller that syncs the navigation of a turbo-frame element with the browser history and URL. (f2b5d2a), closes #97
  • Mixins: useResizeObserver - a mixin that wraps up the ResizeObserver API for use in Stimulus components, automating registering and cleaning up the observer on connect and disconnect. (b535a17), closes #98
  • TableSortController: Allow sorting by custom values other than the cell content (d50e9d9)

Bug Fixes

  • CountdownController: Stop ticking and firing events after countdown ended (621d26e), closes #86

0.9.6 (2023-01-19)

Bug Fixes

  • TweenNumberController - Only run on first intersect, not every time the element enters the viewport (39f6e3c)

0.9.5 (2022-12-20)

Features

  • Mixin: UseIntersection - A mixin that wraps setting up an IntersectionObserver (ea27e1b)
  • Mixin: UseMutationObserver - A mixin that wraps setting up an MutationObserver (03e41bf)

0.9.4 (2022-12-19)

Bug Fixes

  • TabsController - valueChanged getting called before class methods mixin. (5ababe3)

0.9.3 (2022-12-19)

Bug Fixes

  • Controller: Fix bug in Signal controllers preventing controllers seeing any expressions. Regression introduced in 2430d07ac60c06d25a9e50f67c47919fbb536e0a (9bc878c)
  • Controller: Fix bug in SignalVisibility controllers, where visibility classes weren't set. Regression introduced by 2430d07ac60c06d25a9e50f67c47919fbb536e0a (bb062f2)

0.9.2 (2022-10-20)

Features

  • Controller: TableSortController - Improvements to the default sort mechanism to correctly set data-sort-asc/data-sort-desc on first sort (0ee8c86)

Bug Fixes

  • Controller: TableTruncateController - Small bug fixes for when controller is used on the same table as TableSortController. The "show more" element would appear on a table with too few elements, when it is sorted. This is now fixed. (10689c4)
  • CountdownController - Runtime error from missing CSS class toggling methods (8c680e0)
  • TurboFrameRefreshController - Latest version of turbo has a .reload() method, re-setting src no longer works (6a32d71)

0.9.1 (2022-09-14)

Features

  • BaseController: New method eventName to generate an event name using the controllers identifier (c8a8d41)
  • Controller: New RefreshPageController that refreshes the users page, either as an action or on load (d9aad93)
  • Controller: New SignalEnable and SignalDisable controllers which can enable/disable elements based on whether a value matches a given expression (54d1757)
  • Controller: New TweenNumberController that animates a number for visual effect, using a number of possible easing functions. (75ec44d)
  • Controller: SignalDomChildrenController now emits the number of child nodes as a browser event as well an a signal (7163747)

0.9.0 (2022-09-08)

⚠ BREAKING CHANGES

  • Drop UMD and CommonJS builds of the library, and only support ESModules.

Features

  • Controller: PersistedDismissableController (e622660)
  • Drop UMD and CommonJS builds of the library, and only support ESModules. (3b374f6)

Bug Fixes

  • Fix bug where FormRCController did not check for other config options that might be providing the form (754d782)

0.8.0 (2022-06-07)

0.7.5 (2022-04-12)

Features

  • For compatibility with multiple versions of Stimulus / @hotwired/stimulus npm packages, the runtime parts of stimulus necessary for the library to function are now bundled with the library instead of required as a peerDependency. Only incurs 2kb Gzipped. Will remove when @hotwired/stimulus has more market-share than stimulus, currently 50/50 (50a97df)

0.7.4 (2022-02-21)

Features

  • New Controller: EqualizeController - For equalizing the heights of all connected elements to the max observed size, and scaling them responsively to resize and device rotation events (4ebcbee)

0.7.3 (2022-02-16)

Bug Fixes

  • SignalVisibilityController: New hide/show events added in 0.7.2 should have included the nameValue. Now fixed. (00dd27b)

0.7.2 (2022-02-16)

Features

  • Controllers: New SignalDomChildrenController which emits signals when its children/descendants are added or removed (115ab44)
  • Debugging: Display more and clearer information for event logging in debug mode (b9d4b95)
  • SignalInputController: Dispatch an event to the DOM when the value changes (fccc822)
  • SignalVisibilityController: Predicate and value information is now attached to the events fired to the DOM. Allows for easier debugging, and can be used in other controllers if desired. (fc02e05)
  • Add event dispatch to SignalVisibilityController that other controllers can use to trigger actions when the element is shown/hidden (c62972b)

Bug Fixes

  • SignalInputController: Add tiny 1ms debounce to event handlers so that change and input don't both fire for the same change (bb69d6b)
  • Don't duplicate Stimulus-3 built in logging. (e2f64eb)
  • Ensure that dispatched events always have the target in the details obj (07aa806)
  • Fix bug in SignalControllers expression parsing logic where expressions operating on the value "0" were not detected as valid expressions (772ab33)

0.7.1 (2022-01-25)

Bug Fixes

  • BaseController infinite loop when dispatching an event (6618122)

0.7.0 (2022-01-20)

⚠ BREAKING CHANGES

  • Support for Stimulus 3.
  • AutoSubmitFormController - Removed default debounce interval

Features

  • Mixins: New mixin useTemporaryContent for setting content of an element temporarily and restoring it either on demand or after a set time (8f1d254)
  • AutoSubmitFormController - Change eventModeValue to support multiple events. Backwards compatible with old syntax. (efaa124)
  • AutoSubmitFormController - Removed default debounce interval (7d0aa0b)
  • Renamed this.dispatch to this.dispatchEvent to avoid collision with Stimulus 3. Stimulus 3 only supports dispatch on the controller root element, while dispatchEvent can be fired on any element. (e7868e7)
  • Support for Stimulus 3. (60c84d8)
  • Mixins: New mixin UseLocalstorage (c323e7f)

Bug Fixes

  • Exclude Trix/ActionText editors from AutoSubmitFormController, fixes Trix hyperlink dialogue submitting forms (e0e2f52)

0.6.5 (2021-12-06)

Bug Fixes

  • TableSortController - data-sort="false" property for preventing sort should be data-sortable="false" to avoid shadowing dataset property used internally to track current state of column (cbcadb4)

0.6.4 (2021-12-06)

Features

  • TableSortController - Allow columns to be ignored when data-sort="false" is specified. (8e71844)
  • Mixins: useGeolocation - A mixin to enable a controller to subscribe to a device's location updates (47d485d)
  • Improvements to DetectDirtyController and DetectDirtyController to better handle changes in radio button groups (c67bb05)
  • New controller SignalActionController - A controller that receives value change updates from SignalInputController and can fire actions on other controllers. (06df0c0)
  • SignalInputController now works as expected on radio button groups. Add some extra functionality to ensure that values sync up when the SignalInputController connects before the SignalVisibilityControllers. Add a configurable debounceIntervalValue to SignalInputController (018d5a8)
  • Throw an error in Signal controllers if the right-hand side of an expression is blank (1d3eb68)

Bug Fixes

  • Mixins: Fix case where default classes was ignored in Stimulus2 polyfill for plural fooClasses method (d949875)
  • Fix regex in ephemeral controller for whitespace (8bd462f)
  • Fix Signal expressions being stripped of spaces, breaking compatibility with text inputs. Added better handling of whitespace to compensate. (b0a494e)

0.6.3 (2021-11-19)

Features

  • New pair of controllers SignalInputController and SignalVisibilityController. SignalInputController is a controller that broadcasts changes to an input's value, and SignalVisibilityController is a controller that can live anywhere in the DOM and react to named input events to hide or show content based on whether the value of the input matches simple predicates expressions i.e. >3 && <10. (5e3db6c)
  • Controllers: New utility controller FullscreenController for toggling fullscreen for a page or element in response to an event/action (cad6d46)
  • Mixins: New mixin useFullscreen for enabling controllers to toggle fullscreen for a page or element (533db5a)
  • Add functionality to AsyncBlock, PollBlock, LazyBlock and LoadBlock controllers to allow them to retry fetching content a set number of times when network errors occur. (3368392)
  • Add functionality to enable TrixModifierController to strip disallowed formatting from pasted text. (acfa0a7)
  • AlertController - Small utility controller to fire alerts() in response to stimulus actions (ca23d76)
  • AnchorSpyController - Add active and inactive classes to the controller element when the URL's hash matches, or doesnt match (5ad8dbc)
  • CheckboxSelectAllController - Only tick checkboxes that are not readonly and not disabled (fe9d185)
  • CheckboxXORController - Controller to make a group of checkboxes behave like a radio button group where only one can be checked at a time. (fb508bb)
  • Controller for modifying ActionText/Trix behaviours. (0d9c0ef)
  • NavigateFormErrorsController - Add current class to the element/error that is currently targeted by the controller (a5ac9eb)
  • Mixins: New mixins useCollectionEventListeners and useCollectionEventListener for adding event listeners to entire collections of elements (f579b82)

Bug Fixes

  • DurationController - Use new cleanup method for cleaning up event listeners early if errors occur during update (e5682f8)
  • Fix to FormRCController sometimes not submitting when form could not be detected from submit event (cd29f13)
  • PresenceController - Fix event name not matching documentation (0ab4011)

0.6.2 (2021-11-03)

Features

  • Export more internal utilities for HTML insertion and DOM manipulation (0c314e0)

0.6.1 (2021-11-03)

Features

  • Export internal utilities as part of the library. Element manipulation, EventBus, scroll helpers, and form submission helpers (d0b34d6)

0.6.0 (2021-11-03)

⚠ BREAKING CHANGES

  • Rename EnableInputsController and DisableInputsController to be CheckboxEnableInputsController and CheckboxDisableInputsController, to better describe the purpose of the controllers

Features

  • Mixins: Add mixins for injecting HTML that the controller needs, and auto-cleaning it up on disconnect (77fe03c)
  • Add submitMode value to FormRCController to allow changing between calling .submit and .requestSubmit (7c057f1)
  • AutosizeController - Fixed case when an autosize controller element starts life hidden, it will appear collased and incorrectly sized. It will now use an IntersectionObserver to resize on first appearance to the correct size. (715d720)
  • EnableInputsController - Controller that provides an action that can enable/disable inputs (2d2a51d)
  • Mixins - Created mixins useEventListener, useInterval, useTimeout, that can be called in controllers to install behaviours onto stimulus controllers and the behaviours will clean themselves up on disconnect. (6cbf7e0)
  • Rename EnableInputsController and DisableInputsController to be CheckboxEnableInputsController and CheckboxDisableInputsController, to better describe the purpose of the controllers (1488469)

0.5.0 (2021-11-02)

⚠ BREAKING CHANGES

  • AutoSubmitForm controller - Added new value to control the mode the controller uses to monitor inputs for events. Add new 'debounced' mode. Adds new debounceIntervalValue to allow users to customise the debounce interval in debounced mode. Changed modeValue to be submitModeValue to allow other modes like the new eventModeValue.

Features

  • AutoSubmitForm controller - Added new value to control the mode the controller uses to monitor inputs for events. Add new 'debounced' mode. Adds new debounceIntervalValue to allow users to customise the debounce interval in debounced mode. Changed modeValue to be submitModeValue to allow other modes like the new eventModeValue. (f437706)
  • FocusStealController - a controller to steal the users focus when a new input enters the page (3cf7967)
  • PresenceController - Added an optional name value which if provided will be included in the presence event name so that other controllers can react to specific presence events if there are multiple in a given scope. (a069d7b)
  • PrintController and PrintButtonController to enable buttons and actions to trigger the browser print dialogue (ab95de7)

0.4.1 (2021-10-09)

Features

  • FocusStealController - a controller to steal the users focus when a new input enters the page (3cf7967)

0.4.0 (2021-10-08)

⚠ BREAKING CHANGES

  • Change bundling setup to ViteJS. Outputs should be compatible, but releasing this as a breaking change for safety.

Features

  • Add data attribute to mark inputs as ignored for AutoSubmitFormController (bc64359)
  • Add the controller instance to the debug logging for actions and events (0517f25)
  • Allow FormRCController to submit a form found either via a CSS selector or via a target (d7c4ed4)
  • Change bundling setup to ViteJS. Outputs should be compatible, but releasing this as a breaking change for safety. (6c7ff8f)

0.3.19 (2021-10-07)

Features

  • Change implementation of FormRCController to use requestSubmit, and requestReset to be close as possible to emulating a native button click. (eaf9f4c)

0.3.18 (2021-10-07)

Features

  • RemoteFormController - Add an event for remote-form:replace to signify a replace has occurred (c2663bb)

0.3.17 (2021-09-28)

Bug Fixes

  • AutoSubmitFormController - Changes to the underlying implementation to help broaden browser compatibility. (cdc8099)
  • Include src in npm published package so that sourcemaps work (1d03594)

0.3.16 (2021-09-17)

Features

  • Add RemoveController as an alias of DismissableController (cae00eb)
  • BaseController now only builds a proxy to detect loggable events when in debug mode where logging happens (1e44a63)
  • New controllers LoadBlockController and PollBlockController. (aa2598b)

0.3.15 (2021-08-13)

Features

  • TreeViewController - A controller that handles nested ul and ol lists, and enabled them to be collapsed and opened. (bd35e0a)

0.3.14 (2021-08-05)

Bug Fixes

  • AutoSubmitFormController - don't trigger a synthetic 'submit' event when using .requestSubmit() as that fires it's own event unlike .submit() (e40b09b)
  • ConfirmNavigationController - Message value was incorrectly configured in a previous refactor. (f316940)

0.3.13 (2021-08-05)

Features

  • AutoSubmitFormController - allow an optional mode config which determines whether to try submitting the form using requestSubmit or submit (f62c8d0)

0.3.12 (2021-07-19)

Features

  • EmptyDOMController - There is now an optional container target which can be observed instead of the root controller element for emptiness. (fbf785f)

0.3.11 (2021-07-15)

Bug Fixes

  • NavigateFormErrorsController - only show "nextError" button when the error count is 1, if there is no "currentError" button (f6aae19)

0.3.10 (2021-07-15)

Bug Fixes

  • NavigateFormErrorsController - setting indexValue to the same value does not trigger indexValueChanged. Manually call toggleButtons on firstClick events. (973225a)

0.3.9 (2021-07-15)

Bug Fixes

  • NavigateFormErrorsController - add firstClick logic to toggleButtons check. Fixes bug where errorCount is 1, and both buttons are disabled on load. (d94875e)

0.3.8 (2021-07-07)

Bug Fixes

  • NavigateFormErrorsController - The first click after the controller connects will just scroll to the first error, without advancing the count. Fixes bug where controller jumps straight to second error. (df39c5d)

0.3.7 (2021-07-07)

Features

  • ValueWarnController - A form controller to display a warning message (rather than an outright validation error), when the value of a numeric input exceeds a given min/max (2357660)

Bug Fixes

  • Fix indexing bug in NavigateFormErrorsController causing previous/next to not always fire. (92d64e8)

0.3.6 (2021-07-05)

Features

  • Add optional success and fail classes to FallbackImageController (2dfac90)
  • All controllers with class options now support multiple classes, as in utility-class framework environments. i.e. Tailwind (51587bb)

0.3.5 (2021-07-01)

0.3.4 (2021-05-27)

Bug Fixes

  • DisableWithController - Re-enable buttons when a turbo(links) visit triggers (2895ed1)

0.3.3 (2021-05-21)

Bug Fixes

  • NavigateFormErrors - Clamp error index so that "current error" works even when index is out of bounds (d09a66b)

0.3.2 (2021-05-21)

Features

  • BackLinkController - A controller to enable links to navigate back through the user's history to previous pages, falling back to a default href. (9d68ed6)
  • ClockController - A visual controller to display the current time (ac122ae)
  • DurationController - A controller to display the duration that has elapsed since a given timestamp. Similar to TimeDistanceController, but with numbers instead of words. (b634a3c)
  • Prefetch Controller - A controller to preload links when they come into view, or the user hovers over them. (a27593f)
  • ScrollContainerController - Controller to allow control over a scrollable container element (e953769)

0.3.1 (2021-05-14)

Bug Fixes

  • TemporaryStateController - fix attributesValue check always throwing error (6b12aa5)

0.3.0 (2021-05-13)

⚠ BREAKING CHANGES

  • Rename AppearanceController as UserFocusController and tweak the event names.

Features

  • PresenceController - A utility controller to wire up other controllers when an element comes into or leaves the DOM (#26) (d3537d9)
  • Rename AppearanceController as UserFocusController and tweak the event names. (0aa88ca)
  • TabsController - A presentational controller to enabled tabbed views (db040e5)
  • TemporaryStateController - A controller to temporarily apply a state to an attribute of an element, and restore it back after a given time. Closes #22 (#28) (427d0fa)

0.2.10 (2021-05-04)

Features

  • SyncInputsController - Inspired by Vue's v-bind and v-model. A controller to sync input vales to parts of the DOM, or the values of other inputs. (9d5e847)

Bug Fixes

  • AutoSubmitFormController - allow controller to submit normal forms as well as UJS forms. (e1866e2)
  • ScrollTopController/ScrollBottomController - fix controller behaviour when inside an overflow container and mode is "nearest". And more consistent behaviour when mode is document. (f36f9e6)

0.2.9 (2021-04-28)

Features

  • FallbackImageController - update the controller to support failing when the placeholder also fails. Also works more consistently in race-conditions when the image has already loaded when the controller mounts. (1fd682d)

0.2.8 (2021-04-26)

Features

  • CountdownController - A controller to visualise a countdown to a date/time (82c1bfe)
  • NavigateFormErrorsController - A controller to enable smoothscroll navigation between form errors on a page (#23) (dcebaf1)
  • TimeDistanceController - Controller that shows the distance in words between the current time and a specific UNIX timestamp. Updates intelligently according to time distance from current. (#24) (91269ea)

Bug Fixes

  • CountdownController - When errors happen on tick, kill tick interval. (112039c)
  • IntervalController - Throw exception when secondsValue is blank (0a45825)

0.2.7 (2021-04-24)

Features

  • Add event logging to debug logging (594553c)
  • AnchorSpyController - Controller to write anchors to the URL when actions happen, and detect when the page loads with an anchor (#), and wire up other controllers. i.e. To reopen accordions/tabs when the page opens with the correct anchor. Closes #18 (#20) (de0be82)
  • BaseController - An extendable controller that provides common useful behaviours and properties for all controllers that use it as a base (a12b101)
  • EphemeralController - an extendable base controller that can cleanly uninstall controllers/targets/classes/values from DOM elements (34ebc58)
  • IntervalController - a utility controller that fires an event every x seconds to wire up to other controllers (c31fc3b)
  • MediaPlayerController - A thin stimulus controller wrapper around the native HTML5 video and audio tag controls (#21) (91bcf2b)
  • TimeoutController - a utility controller that fires an event after x seconds to wire up to other controllers (9f0e0da)

Bug Fixes

  • Missing sourceTarget in ClipboardController (da222a7)

0.2.6 (2021-04-23)

Features

  • AnchorSpyController - Controller to write anchors to the URL when actions happen, and detect when the page loads with an anchor (#), and wire up other controllers. i.e. To reopen accordions/tabs when the page opens with the correct anchor. Closes #18 (#20) (de0be82)
  • MediaPlayerController - A thin stimulus controller wrapper around the native HTML5 video and audio tag controls (#21) (91bcf2b)

Bug Fixes

  • Missing sourceTarget in ClipboardController (da222a7)

0.2.5 (2021-04-21)

Features

  • TableSortController - Allow sorting of tables by clicking on column headers (2ba2560)
  • TableTruncateController - Allow the collapsing of long tables, down to a specified number of rows, and a button to expand the table to full-height. (c121cd7)

0.2.4 (2021-04-13)

Bug Fixes

  • package.json pointing to incorrect Typescript output. Should be index.d.ts (68e22d8)

0.2.3 (2021-03-30)

Features

  • DetectDirtyFormController - A form controller that detects the dirty state of a whole form and any of its children. (e173932)
  • Form RC Controller. Able to submit and reset a form from outside its child subtree. Closes #7 (0fa1df0)

0.2.2 (2021-03-26)

Features

  • Form RC Controller. Able to submit and reset a form from outside its child subtree. Closes #7 (0fa1df0)

0.2.1 (2021-03-11)

Features

  • ConfirmNavigationController - Support for Hotwire/Turbo and Turbolinks navigation events (f698920)
  • DisableWithController - Controller to disable an element temporarily to prevent double clicks and submissions. Emulates UJS DisableWith for Hotwire applications. (#12) (1d675b0)
  • ElementSaveController - save the state of a single element to localstorage. Closes #4 (#14) (5b39deb)
  • RemoteFormController - Controller for handling UJS remote form responses (fdf0e5f)
  • TurboFrameRefreshController - a controller to either manually or periodically refresh the contents of a turboframe's src (#13) (f4dfd98)

Bug Fixes

  • Accidentally using type-guards for HTMLLinkElement instead of HTMLAnchorElement. (d3f2be9)

0.2.0 (2021-03-02)

⚠ BREAKING CHANGES

  • Remove lodash as a dependency

Bug Fixes

  • Fix bug in LimitedSelectionCheckboxesController where maxValue was being ignored (fc639f6)

  • Remove lodash as a dependency (d3990ea)

0.1.15 (2021-03-01)

Features

  • Add optional selector and error-message values to async-block and lazy-block controllers. Users can choose to extract sub-content from HTML responses, and provide their own error messages when fetch fails. (1c3be1e)

0.1.14 (2021-02-26)

Bug Fixes

  • Fix NestedFormController - The ID generated by generateID needs to not have any decimal points. Math.random() gives a number between 0 and 1. Slice out decimal point (684e073)

0.1.13 (2021-02-26)

Bug Fixes

  • Fix bug in Nested Form Controller where new class API was being used without the dot "." prefix in the selector (315b1cf)

0.1.12 (2021-02-11)

Features

  • AppearanceController - A utility controller to wire up Stimulus actions when the user focuses/minimises the page (e15fe82)
  • IntersectionController - A utility controller to wire up Stimulus actions when an element moves in/out of the viewport (dbda74f)

0.1.11 (2021-02-10)

Features

  • StickyController - A controller to be able to style "sticky" elements depending on their "stuck" state. (ce598eb)

0.1.10 (2021-02-09)

Bug Fixes

  • Fix bug in CheckboxSelectAllController preventing connect() from adding event listeners (db577a9)