vike-solid 0.7.8 → 0.7.9
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/dist/+config.d.ts +1 -1
- package/dist/{Config-B_i-zLx_.d.ts → Config-BdeNP4pN.d.ts} +1 -1
- package/dist/components/Config/Config-client.d.ts +1 -1
- package/dist/components/Config/Config-server.d.ts +1 -1
- package/dist/hooks/useConfig/useConfig-client.d.ts +1 -1
- package/dist/hooks/useConfig/useConfig-client.js +2 -3
- package/dist/hooks/useConfig/useConfig-server.d.ts +1 -1
- package/dist/integration/onRenderClient.js +1 -1
- package/dist/integration/onRenderHtml.js +2 -2
- package/package.json +13 -13
package/dist/+config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImportString, PageContextServer, PageContextClient
|
|
1
|
+
import { ImportString, PageContext, PageContextServer, PageContextClient } from 'vike/types';
|
|
2
2
|
import { JSX, Component } from 'solid-js';
|
|
3
3
|
|
|
4
4
|
type TagAttributes = Record<string, string | number | boolean | undefined | null>;
|
|
@@ -7,15 +7,14 @@ import 'solid-js';
|
|
|
7
7
|
function useConfig() {
|
|
8
8
|
// Vike hook
|
|
9
9
|
let pageContext = getPageContext();
|
|
10
|
-
if (pageContext) return config => setPageContextConfigFromHook(config, pageContext);
|
|
11
10
|
|
|
12
11
|
// Component
|
|
13
|
-
pageContext = usePageContext();
|
|
12
|
+
if (!pageContext) pageContext = usePageContext();
|
|
14
13
|
return config => {
|
|
15
14
|
if (!("_headAlreadySet" in pageContext)) {
|
|
16
15
|
setPageContextConfigFromHook(config, pageContext);
|
|
17
16
|
} else {
|
|
18
|
-
applyHead(config);
|
|
17
|
+
if (typeof window !== 'undefined') applyHead(config);
|
|
19
18
|
}
|
|
20
19
|
};
|
|
21
20
|
}
|
|
@@ -51,7 +51,7 @@ function Wrapper(props) {
|
|
|
51
51
|
// Outer wrapping
|
|
52
52
|
...(pageContext.config.Wrapper || [])].reverse()));
|
|
53
53
|
});
|
|
54
|
-
const renderWrappers =
|
|
54
|
+
const renderWrappers = i => {
|
|
55
55
|
let item = wrappers[i]; // Assumes reversed, and must access with `[i]` instead of `.at(i)` otherwise, wrapper's states are not persisted.
|
|
56
56
|
|
|
57
57
|
if (!item) return props.children;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createComponent, Dynamic, generateHydrationScript, renderToStringAsync, renderToString, renderToStream } from 'solid-js/web';
|
|
2
|
-
import {
|
|
2
|
+
import { dangerouslySkipEscape, escapeInject, stampPipe } from 'vike/server';
|
|
3
3
|
import { i as includes, c as configsCumulative } from '../includes-B0OUVLz0.js';
|
|
4
4
|
import { PageContextProvider, usePageContext } from '../hooks/usePageContext.js';
|
|
5
5
|
import { createComputed, createComponent as createComponent$1 } from 'solid-js';
|
|
@@ -51,7 +51,7 @@ function Wrapper(props) {
|
|
|
51
51
|
// Outer wrapping
|
|
52
52
|
...(pageContext.config.Wrapper || [])].reverse()));
|
|
53
53
|
});
|
|
54
|
-
const renderWrappers =
|
|
54
|
+
const renderWrappers = i => {
|
|
55
55
|
let item = wrappers[i]; // Assumes reversed, and must access with `[i]` instead of `.at(i)` otherwise, wrapper's states are not persisted.
|
|
56
56
|
|
|
57
57
|
if (!item) return props.children;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vike-solid",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"isbot-fast": "^1.2.0",
|
|
7
|
-
"vite-plugin-solid": "^2.11.
|
|
7
|
+
"vite-plugin-solid": "^2.11.6"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
10
|
"solid-js": "^1.8.7",
|
|
@@ -12,22 +12,22 @@
|
|
|
12
12
|
"vite": ">=5.0.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@babel/core": "^7.26.
|
|
16
|
-
"@babel/preset-env": "^7.26.
|
|
15
|
+
"@babel/core": "^7.26.9",
|
|
16
|
+
"@babel/preset-env": "^7.26.9",
|
|
17
17
|
"@babel/preset-typescript": "^7.26.0",
|
|
18
|
-
"@brillout/release-me": "^0.4.
|
|
18
|
+
"@brillout/release-me": "^0.4.3",
|
|
19
19
|
"@rollup/plugin-babel": "^6.0.4",
|
|
20
20
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
21
|
-
"@types/node": "^22.10.
|
|
22
|
-
"babel-preset-solid": "^1.9.
|
|
23
|
-
"bumpp": "^
|
|
24
|
-
"rollup": "^4.
|
|
21
|
+
"@types/node": "^22.10.10",
|
|
22
|
+
"babel-preset-solid": "^1.9.5",
|
|
23
|
+
"bumpp": "^10.0.3",
|
|
24
|
+
"rollup": "^4.35.0",
|
|
25
25
|
"rollup-plugin-dts": "^6.1.1",
|
|
26
|
-
"solid-js": "^1.9.
|
|
26
|
+
"solid-js": "^1.9.5",
|
|
27
27
|
"tslib": "^2.8.1",
|
|
28
|
-
"typescript": "^5.
|
|
29
|
-
"vike": "^0.4.
|
|
30
|
-
"vite": "^6.
|
|
28
|
+
"typescript": "^5.8.2",
|
|
29
|
+
"vike": "^0.4.224",
|
|
30
|
+
"vite": "^6.2.1"
|
|
31
31
|
},
|
|
32
32
|
"exports": {
|
|
33
33
|
"./config": "./dist/+config.js",
|