@getlupa/vue 0.12.0 → 0.12.1

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.
@@ -4301,6 +4301,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
4301
4301
  if (!width || !grid) {
4302
4302
  return;
4303
4303
  }
4304
+ screenStore.setScreenWidth({ width });
4304
4305
  const { currentScreenWidth } = storeToRefs(screenStore);
4305
4306
  const screenWidth = (_a = currentScreenWidth.value) != null ? _a : "xl";
4306
4307
  columnCount.value = grid.columns[screenWidth];
@@ -10347,8 +10348,8 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
10347
10348
  const handleResize = () => {
10348
10349
  const doc = document.documentElement;
10349
10350
  doc.style.setProperty("--lupa-full-height", `${window.innerHeight}px`);
10350
- searchResultStore.setColumnCount({ width: window.innerWidth, grid: props.options.grid });
10351
10351
  screenStore.setScreenWidth({ width: window.innerWidth });
10352
+ searchResultStore.setColumnCount({ width: window.innerWidth, grid: props.options.grid });
10352
10353
  };
10353
10354
  const handleUrlChange = (params) => {
10354
10355
  var _a;
@@ -4299,6 +4299,7 @@ const useSearchResultStore = defineStore("searchResult", () => {
4299
4299
  if (!width || !grid) {
4300
4300
  return;
4301
4301
  }
4302
+ screenStore.setScreenWidth({ width });
4302
4303
  const { currentScreenWidth } = storeToRefs(screenStore);
4303
4304
  const screenWidth = (_a = currentScreenWidth.value) != null ? _a : "xl";
4304
4305
  columnCount.value = grid.columns[screenWidth];
@@ -10345,8 +10346,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
10345
10346
  const handleResize = () => {
10346
10347
  const doc = document.documentElement;
10347
10348
  doc.style.setProperty("--lupa-full-height", `${window.innerHeight}px`);
10348
- searchResultStore.setColumnCount({ width: window.innerWidth, grid: props.options.grid });
10349
10349
  screenStore.setScreenWidth({ width: window.innerWidth });
10350
+ searchResultStore.setColumnCount({ width: window.innerWidth, grid: props.options.grid });
10350
10351
  };
10351
10352
  const handleUrlChange = (params) => {
10352
10353
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/vue",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "main": "dist/lupaSearch.mjs",
5
5
  "module": "dist/lupaSearch.mjs",
6
6
  "types": "dist/src/index.d.ts",