@newlogic-digital/stimulus-components 1.4.1 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newlogic-digital/stimulus-components",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "eslint": "eslint '**/*.js'",
@@ -54,6 +54,7 @@ export class CookieConsentDialog extends CookieConsentCommon {
54
54
  export class CookieConsentForm extends CookieConsentCommon {
55
55
  connect() {
56
56
  document.querySelector('.x-cookieconsent-dialog')?.close()
57
+ document.querySelector('.x-cookieconsent-dialog').removeAttribute('data-closed')
57
58
 
58
59
  this.element.querySelectorAll('input:not([disabled])').forEach((input) => {
59
60
  input.checked = false
package/src/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { ControlSelect } from './control-select/index.js'
2
2
  import { CookieConsentDialog, CookieConsentForm } from './cookieconsent/index.js'
3
3
  import { GoogleMaps } from './google-maps/index.js'
4
- import { Paginator } from './paginator/index.js'
4
+ import { NajaPaginator } from './naja-paginator/index.js'
5
5
  import { Popover } from './popover/index.js'
6
6
  import { ReCaptcha, ReCaptchaLazy } from './recaptcha/index.js'
7
7
  import { Reveal } from './reveal/index.js'
8
8
 
9
- export { ControlSelect, CookieConsentDialog, CookieConsentForm, GoogleMaps, Paginator, Popover, ReCaptcha, ReCaptchaLazy, Reveal }
9
+ export { ControlSelect, CookieConsentDialog, CookieConsentForm, GoogleMaps, NajaPaginator, Popover, ReCaptcha, ReCaptchaLazy, Reveal }
@@ -1,6 +1,6 @@
1
1
  import { Controller } from '@hotwired/stimulus'
2
2
 
3
- export class Paginator extends Controller {
3
+ export class NajaPaginator extends Controller {
4
4
  static targets = ['append', 'scroll']
5
5
 
6
6
  scroll() {