@searchspring/snap-preact-components 0.53.2 → 0.53.4

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.
@@ -204,7 +204,7 @@ exports.Carousel = (0, mobx_react_1.observer)(function (properties) {
204
204
  // default props
205
205
  breakpoints: properties.vertical
206
206
  ? JSON.parse(JSON.stringify(exports.defaultVerticalCarouselBreakpoints))
207
- : JSON.parse(JSON.stringify(exports.defaultCarouselBreakpoints)), pagination: false, loop: true, autoAdjustSlides: true }, (_a = globalTheme === null || globalTheme === void 0 ? void 0 : globalTheme.components) === null || _a === void 0 ? void 0 : _a.carousel), properties), (_c = (_b = properties.theme) === null || _b === void 0 ? void 0 : _b.components) === null || _c === void 0 ? void 0 : _c.carousel);
207
+ : JSON.parse(JSON.stringify(exports.defaultCarouselBreakpoints)), pagination: false, loop: true, autoAdjustSlides: false }, (_a = globalTheme === null || globalTheme === void 0 ? void 0 : globalTheme.components) === null || _a === void 0 ? void 0 : _a.carousel), properties), (_c = (_b = properties.theme) === null || _b === void 0 ? void 0 : _b.components) === null || _c === void 0 ? void 0 : _c.carousel);
208
208
  Object.keys(props.breakpoints).forEach(function (breakpoint) {
209
209
  var breakPointProps = props.breakpoints[breakpoint];
210
210
  // make certain props numbers
@@ -258,7 +258,7 @@ exports.Carousel = (0, mobx_react_1.observer)(function (properties) {
258
258
  }
259
259
  //add usable class to last visible slide.
260
260
  attachClasstoLastVisibleSlide();
261
- }, []);
261
+ }, [properties]);
262
262
  if (pagination) {
263
263
  if (typeof pagination == 'object') {
264
264
  pagination = __assign({ clickable: true }, pagination);
@@ -174,7 +174,7 @@ export const Carousel = observer((properties) => {
174
174
  : JSON.parse(JSON.stringify(defaultCarouselBreakpoints)),
175
175
  pagination: false,
176
176
  loop: true,
177
- autoAdjustSlides: true,
177
+ autoAdjustSlides: false,
178
178
  // global theme
179
179
  ...globalTheme?.components?.carousel,
180
180
  //props
@@ -243,7 +243,7 @@ export const Carousel = observer((properties) => {
243
243
  }
244
244
  //add usable class to last visible slide.
245
245
  attachClasstoLastVisibleSlide();
246
- }, []);
246
+ }, [properties]);
247
247
  if (pagination) {
248
248
  if (typeof pagination == 'object') {
249
249
  pagination = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searchspring/snap-preact-components",
3
- "version": "0.53.2",
3
+ "version": "0.53.4",
4
4
  "description": "Snap Preact Component Library",
5
5
  "author": "Searchspring",
6
6
  "license": "MIT",
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "@cypress/react": "^8.0.0",
31
31
  "@emotion/react": "11.9.0",
32
- "@searchspring/snap-toolbox": "^0.53.2",
32
+ "@searchspring/snap-toolbox": "^0.53.4",
33
33
  "classnames": "^2.3.2",
34
34
  "cypress": "^12.15.0",
35
35
  "cypress-wait-until": "^1.7.2",
@@ -52,14 +52,14 @@
52
52
  "@babel/preset-env": "^7.21.4",
53
53
  "@babel/preset-react": "^7.18.6",
54
54
  "@babel/runtime": "^7.21.0",
55
- "@searchspring/snap-client": "^0.53.2",
56
- "@searchspring/snap-controller": "^0.53.2",
57
- "@searchspring/snap-event-manager": "^0.53.2",
58
- "@searchspring/snap-logger": "^0.53.2",
59
- "@searchspring/snap-profiler": "^0.53.2",
60
- "@searchspring/snap-store-mobx": "^0.53.2",
61
- "@searchspring/snap-tracker": "^0.53.2",
62
- "@searchspring/snap-url-manager": "^0.53.2",
55
+ "@searchspring/snap-client": "^0.53.4",
56
+ "@searchspring/snap-controller": "^0.53.4",
57
+ "@searchspring/snap-event-manager": "^0.53.4",
58
+ "@searchspring/snap-logger": "^0.53.4",
59
+ "@searchspring/snap-profiler": "^0.53.4",
60
+ "@searchspring/snap-store-mobx": "^0.53.4",
61
+ "@searchspring/snap-tracker": "^0.53.4",
62
+ "@searchspring/snap-url-manager": "^0.53.4",
63
63
  "@storybook/addon-actions": "6.4.22",
64
64
  "@storybook/addon-controls": "6.4.22",
65
65
  "@storybook/addon-docs": "6.4.22",
@@ -83,5 +83,5 @@
83
83
  "webpack-merge": "^5.8.0"
84
84
  },
85
85
  "sideEffects": false,
86
- "gitHead": "03a92578f411afee0bcd537d6f499ec076aafd3a"
86
+ "gitHead": "9e15f63d93f34ccf0af5ce33eca1d6c9e5b794f5"
87
87
  }