@hortonstudio/main 1.7.7 → 1.7.8

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // Version:1.7.7
1
+ // Version:1.7.8
2
2
  const API_NAME = "hsmain";
3
3
 
4
4
  const initializeHsMain = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hortonstudio/main",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "Animation and utility library for client websites",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/utils/slider.js CHANGED
@@ -69,7 +69,7 @@ const initPaginationInstance = (originalList) => {
69
69
  elements.counter.setAttribute('aria-label', 'Current page');
70
70
  }
71
71
 
72
- const config = originalList.getAttribute('data-hs-config') || '';
72
+ const config = elements.controls?.getAttribute('data-hs-config') || '';
73
73
  const configOptions = config.split(', ').map(opt => opt.trim());
74
74
  const isInfiniteMode = configOptions.includes('infinite');
75
75