@thinkpixellab-public/px-vue 4.1.14 → 4.1.15

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.
@@ -1,5 +1,5 @@
1
1
  <!--
2
- A simple position:stickky container that adds stuck / unstuck events and classes as the item
2
+ A simple position:sticky container that adds stuck / unstuck events and classes as the item
3
3
  becomes stuck / unstuck.
4
4
  -->
5
5
  <template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkpixellab-public/px-vue",
3
- "version": "4.1.14",
3
+ "version": "4.1.15",
4
4
  "description": "General purpose Vue components and helpers that can be used across projects.",
5
5
  "author": {
6
6
  "name": "Pixel Lab"
@@ -39,37 +39,36 @@
39
39
  "vue-inline-svg": "^3.1.4"
40
40
  },
41
41
  "devDependencies": {
42
- "@babel/core": "^7.26.7",
43
- "@chromatic-com/storybook": "^3.2.4",
42
+ "@babel/core": "^7.26.10",
43
+ "@chromatic-com/storybook": "^3.2.6",
44
44
  "@nuxt/kit": "^3.15.4",
45
- "@rushstack/eslint-patch": "^1.10.5",
46
- "@storybook/addon-essentials": "^8.5.3",
47
- "@storybook/addon-interactions": "^8.5.3",
48
- "@storybook/addon-links": "^8.5.3",
49
- "@storybook/addon-mdx-gfm": "^8.5.3",
50
- "@storybook/blocks": "^8.5.3",
51
- "@storybook/manager-api": "^8.5.3",
52
- "@storybook/test": "^8.5.3",
53
- "@storybook/theming": "^8.5.3",
54
- "@storybook/vue3": "^8.5.3",
55
- "@storybook/vue3-vite": "^8.5.3",
56
- "@vitejs/plugin-vue": "^5.2.1",
45
+ "@rushstack/eslint-patch": "^1.11.0",
46
+ "@storybook/addon-essentials": "^8.6.7",
47
+ "@storybook/addon-interactions": "^8.6.7",
48
+ "@storybook/addon-links": "^8.6.7",
49
+ "@storybook/addon-mdx-gfm": "^8.6.7",
50
+ "@storybook/blocks": "^8.6.7",
51
+ "@storybook/manager-api": "^8.6.7",
52
+ "@storybook/test": "^8.6.7",
53
+ "@storybook/theming": "^8.6.7",
54
+ "@storybook/vue3": "^8.6.7",
55
+ "@storybook/vue3-vite": "^8.6.7",
56
+ "@vitejs/plugin-vue": "^5.2.3",
57
57
  "@vue/eslint-config-prettier": "^10.2.0",
58
58
  "@vue/test-utils": "^2.4.6",
59
59
  "babel-eslint": "^10.1.0",
60
- "babel-loader": "^9.2.1",
61
- "chromatic": "^11.25.2",
62
- "eslint": "^9.19.0",
63
- "eslint-plugin-storybook": "^0.11.2",
60
+ "chromatic": "^11.27.0",
61
+ "eslint": "^9.22.0",
62
+ "eslint-plugin-storybook": "^0.11.6",
64
63
  "eslint-plugin-vue": "^9.32.0",
65
64
  "jsdom": "^26.0.0",
66
- "prettier": "^3.4.2",
65
+ "prettier": "^3.5.3",
67
66
  "sass": "^1.83.4",
68
- "storybook": "^8.5.3",
69
- "storybook-addon-pseudo-states": "^4.0.2",
67
+ "storybook": "^8.6.7",
68
+ "storybook-addon-pseudo-states": "^4.0.3",
70
69
  "storybook-dark-mode": "^4.0.2",
71
- "vite": "^6.0.11",
72
- "vitest": "^3.0.5",
70
+ "vite": "^6.2.2",
71
+ "vitest": "^3.0.9",
73
72
  "vue-loader": "^17.4.2"
74
73
  },
75
74
  "bugs": {
package/utils/utilsSsr.js CHANGED
@@ -10,19 +10,15 @@ export function getQueryParams() {
10
10
  return params;
11
11
  };
12
12
 
13
- let queryParams;
14
-
15
- let ctx;
16
-
17
- if (typeof window === 'undefined') {
18
- ctx = useSSRContext();
19
- }
20
-
21
- if (ctx) {
22
- queryParams = getQueryParams(ctx.url);
23
- } else {
13
+ let queryParams = {};
14
+ if (import.meta.server) {
15
+ const ctx = useSSRContext();
16
+ // there are some error situations where ctx is not available
17
+ if (ctx) {
18
+ queryParams = getQueryParams(ctx.url);
19
+ }
20
+ } else if (typeof window !== 'undefined') {
24
21
  const { search } = window.location;
25
-
26
22
  queryParams = getQueryParams(search);
27
23
  }
28
24