@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.
- package/components/PxSticky.vue +1 -1
- package/package.json +23 -24
- package/utils/utilsSsr.js +8 -12
package/components/PxSticky.vue
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkpixellab-public/px-vue",
|
|
3
|
-
"version": "4.1.
|
|
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.
|
|
43
|
-
"@chromatic-com/storybook": "^3.2.
|
|
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.
|
|
46
|
-
"@storybook/addon-essentials": "^8.
|
|
47
|
-
"@storybook/addon-interactions": "^8.
|
|
48
|
-
"@storybook/addon-links": "^8.
|
|
49
|
-
"@storybook/addon-mdx-gfm": "^8.
|
|
50
|
-
"@storybook/blocks": "^8.
|
|
51
|
-
"@storybook/manager-api": "^8.
|
|
52
|
-
"@storybook/test": "^8.
|
|
53
|
-
"@storybook/theming": "^8.
|
|
54
|
-
"@storybook/vue3": "^8.
|
|
55
|
-
"@storybook/vue3-vite": "^8.
|
|
56
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
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
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"eslint": "^
|
|
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.
|
|
65
|
+
"prettier": "^3.5.3",
|
|
67
66
|
"sass": "^1.83.4",
|
|
68
|
-
"storybook": "^8.
|
|
69
|
-
"storybook-addon-pseudo-states": "^4.0.
|
|
67
|
+
"storybook": "^8.6.7",
|
|
68
|
+
"storybook-addon-pseudo-states": "^4.0.3",
|
|
70
69
|
"storybook-dark-mode": "^4.0.2",
|
|
71
|
-
"vite": "^6.
|
|
72
|
-
"vitest": "^3.0.
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
|