vike-solid-query 0.0.1-commit-6c8fbf2 → 0.0.1-commit-f6af6c4

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,4 +1,3 @@
1
- import type { QueryClientConfig } from "@tanstack/solid-query";
2
1
  import "vike-solid/config";
3
2
  declare const _default: {
4
3
  name: string;
@@ -23,10 +22,3 @@ declare const _default: {
23
22
  };
24
23
  };
25
24
  export default _default;
26
- declare global {
27
- namespace Vike {
28
- interface Config {
29
- queryClientConfig?: QueryClientConfig;
30
- }
31
- }
32
- }
@@ -2,7 +2,7 @@ import "vike-solid/config"; // Needed for declaration merging of Config
2
2
  export default {
3
3
  name: "vike-solid-query",
4
4
  require: {
5
- "vike-solid": ">=0.7.3",
5
+ "vike-solid": ">=0.7.4",
6
6
  },
7
7
  Wrapper: "import:vike-solid-query/__internal/integration/Wrapper:default",
8
8
  queryClientConfig: {
@@ -1,4 +1,4 @@
1
- import { type JSX } from "solid-js";
1
+ import type { JSX } from "solid-js";
2
2
  export default function Wrapper(props: {
3
3
  children?: JSX.Element;
4
4
  }): JSX.Element;
@@ -1,13 +1,7 @@
1
- import { createComponent } from "solid-js";
2
1
  import { QueryClient, QueryClientProvider } from "@tanstack/solid-query";
3
2
  import { usePageContext } from "vike-solid/usePageContext";
4
3
  export default function Wrapper(props) {
5
4
  const pageContext = usePageContext();
6
5
  const queryClient = new QueryClient(pageContext.config.queryClientConfig);
7
- return createComponent(QueryClientProvider, {
8
- client: queryClient,
9
- get children() {
10
- return props.children;
11
- },
12
- });
6
+ return <QueryClientProvider client={queryClient}>{props.children}</QueryClientProvider>;
13
7
  }
@@ -0,0 +1,2 @@
1
+ import Wrapper from "./Wrapper.jsx";
2
+ export default Wrapper;
@@ -0,0 +1,2 @@
1
+ import Wrapper from "./Wrapper.jsx";
2
+ export default Wrapper;
@@ -1 +1 @@
1
- export { QueryBoundary } from "./QueryBoundary";
1
+ export { QueryBoundary } from "./QueryBoundary.jsx";
package/dist/src/index.js CHANGED
@@ -1 +1 @@
1
- export { QueryBoundary } from "./QueryBoundary";
1
+ export { QueryBoundary } from "./QueryBoundary.jsx";
package/package.json CHANGED
@@ -1,11 +1,18 @@
1
1
  {
2
2
  "name": "vike-solid-query",
3
- "version": "0.0.1-commit-6c8fbf2",
3
+ "version": "0.0.1-commit-f6af6c4",
4
4
  "type": "module",
5
+ "main": "dist/src/index.js",
6
+ "typings": "dist/src/index.js",
7
+ "exports": {
8
+ ".": "./dist/src/index.js",
9
+ "./config": "./dist/integration/+config.js",
10
+ "./__internal/integration/Wrapper": "./dist/integration/index.js"
11
+ },
5
12
  "peerDependencies": {
6
13
  "@tanstack/solid-query": ">=5.0.0",
7
14
  "solid-js": "^1.8.7",
8
- "vike-solid": "^0.7.5"
15
+ "vike-solid": ">=0.7.4"
9
16
  },
10
17
  "devDependencies": {
11
18
  "@brillout/release-me": "^0.4.1",
@@ -14,13 +21,7 @@
14
21
  "solid-js": "^1.8.22",
15
22
  "typescript": "^5.6.2",
16
23
  "vike": "^0.4.195",
17
- "vite": "^5.4.6",
18
- "vike-solid": "0.7.5"
19
- },
20
- "exports": {
21
- ".": "./dist/src/index.js",
22
- "./config": "./dist/integration/+config.js",
23
- "./__internal/integration/Wrapper": "./dist/integration/Wrapper.js"
24
+ "vike-solid": "^0.7.5"
24
25
  },
25
26
  "typesVersions": {
26
27
  "*": {
@@ -33,7 +34,7 @@
33
34
  }
34
35
  },
35
36
  "files": [
36
- "dist/"
37
+ "dist"
37
38
  ],
38
39
  "repository": "github:vikejs/vike-solid",
39
40
  "license": "MIT",