@elementor/query 0.1.6 → 0.2.0
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/CHANGELOG.md +11 -0
- package/README.md +4 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.2.0](https://github.com/elementor/elementor-packages/compare/@elementor/query@0.1.6...@elementor/query@0.2.0) (2024-01-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **editor-site-navigation:** pagination for pages panel ([#154](https://github.com/elementor/elementor-packages/issues/154)) ([1a1e1f4](https://github.com/elementor/elementor-packages/commit/1a1e1f46006988d10e0a7af292dbbc57644ed16f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.1.6](https://github.com/elementor/elementor-packages/compare/@elementor/query@0.1.5...@elementor/query@0.1.6) (2023-11-07)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @elementor/query
|
package/README.md
CHANGED
|
@@ -22,7 +22,10 @@ const App = () => (
|
|
|
22
22
|
);
|
|
23
23
|
|
|
24
24
|
const MyComponent = () => {
|
|
25
|
-
const { data: todos, isLoading } = useQuery(
|
|
25
|
+
const { data: todos, isLoading } = useQuery( {
|
|
26
|
+
queryKey: 'todos',
|
|
27
|
+
queryFn: () => fetch( '/todos' ).then( ( res ) => res.json() ),
|
|
28
|
+
} );
|
|
26
29
|
|
|
27
30
|
if ( isLoading ) {
|
|
28
31
|
return <div>Loading...</div>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueryClient } from '@tanstack/react-query';
|
|
2
|
-
export { QueryClient, QueryClientProvider, useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
export { QueryClient, QueryClientProvider, useInfiniteQuery, useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
|
3
3
|
|
|
4
4
|
declare function createQueryClient(): QueryClient;
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueryClient } from '@tanstack/react-query';
|
|
2
|
-
export { QueryClient, QueryClientProvider, useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
|
2
|
+
export { QueryClient, QueryClientProvider, useInfiniteQuery, useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
|
3
3
|
|
|
4
4
|
declare function createQueryClient(): QueryClient;
|
|
5
5
|
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __export(src_exports, {
|
|
|
23
23
|
QueryClient: () => import_react_query2.QueryClient,
|
|
24
24
|
QueryClientProvider: () => import_react_query2.QueryClientProvider,
|
|
25
25
|
createQueryClient: () => createQueryClient,
|
|
26
|
+
useInfiniteQuery: () => import_react_query2.useInfiniteQuery,
|
|
26
27
|
useMutation: () => import_react_query2.useMutation,
|
|
27
28
|
useQuery: () => import_react_query2.useQuery,
|
|
28
29
|
useQueryClient: () => import_react_query2.useQueryClient
|
|
@@ -45,6 +46,7 @@ function createQueryClient() {
|
|
|
45
46
|
QueryClient,
|
|
46
47
|
QueryClientProvider,
|
|
47
48
|
createQueryClient,
|
|
49
|
+
useInfiniteQuery,
|
|
48
50
|
useMutation,
|
|
49
51
|
useQuery,
|
|
50
52
|
useQueryClient
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { QueryClient } from '@tanstack/react-query';\n\nexport {\n\tuseQuery,\n\tuseMutation,\n\tuseQueryClient,\n\tQueryClient,\n\tQueryClientProvider,\n} from '@tanstack/react-query';\n\nexport function createQueryClient() {\n\treturn new QueryClient( {\n\t\tdefaultOptions: {\n\t\t\tqueries: {\n\t\t\t\trefetchOnWindowFocus: false,\n\t\t\t\trefetchOnReconnect: false,\n\t\t\t},\n\t\t},\n\t} );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAA4B;AAE5B,IAAAA,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { QueryClient } from '@tanstack/react-query';\n\nexport {\n\tuseQuery,\n\tuseInfiniteQuery,\n\tuseMutation,\n\tuseQueryClient,\n\tQueryClient,\n\tQueryClientProvider,\n} from '@tanstack/react-query';\n\nexport function createQueryClient() {\n\treturn new QueryClient( {\n\t\tdefaultOptions: {\n\t\t\tqueries: {\n\t\t\t\trefetchOnWindowFocus: false,\n\t\t\t\trefetchOnReconnect: false,\n\t\t\t},\n\t\t},\n\t} );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAA4B;AAE5B,IAAAA,sBAOO;AAEA,SAAS,oBAAoB;AACnC,SAAO,IAAI,+BAAa;AAAA,IACvB,gBAAgB;AAAA,MACf,SAAS;AAAA,QACR,sBAAsB;AAAA,QACtB,oBAAoB;AAAA,MACrB;AAAA,IACD;AAAA,EACD,CAAE;AACH;","names":["import_react_query"]}
|
package/dist/index.mjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { QueryClient } from "@tanstack/react-query";
|
|
3
3
|
import {
|
|
4
4
|
useQuery,
|
|
5
|
+
useInfiniteQuery,
|
|
5
6
|
useMutation,
|
|
6
7
|
useQueryClient,
|
|
7
8
|
QueryClient as QueryClient2,
|
|
@@ -21,6 +22,7 @@ export {
|
|
|
21
22
|
QueryClient2 as QueryClient,
|
|
22
23
|
QueryClientProvider,
|
|
23
24
|
createQueryClient,
|
|
25
|
+
useInfiniteQuery,
|
|
24
26
|
useMutation,
|
|
25
27
|
useQuery,
|
|
26
28
|
useQueryClient
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { QueryClient } from '@tanstack/react-query';\n\nexport {\n\tuseQuery,\n\tuseMutation,\n\tuseQueryClient,\n\tQueryClient,\n\tQueryClientProvider,\n} from '@tanstack/react-query';\n\nexport function createQueryClient() {\n\treturn new QueryClient( {\n\t\tdefaultOptions: {\n\t\t\tqueries: {\n\t\t\t\trefetchOnWindowFocus: false,\n\t\t\t\trefetchOnReconnect: false,\n\t\t\t},\n\t\t},\n\t} );\n}\n"],"mappings":";AAAA,SAAS,mBAAmB;AAE5B;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAAA;AAAA,EACA;AAAA,OACM;AAEA,SAAS,oBAAoB;AACnC,SAAO,IAAI,YAAa;AAAA,IACvB,gBAAgB;AAAA,MACf,SAAS;AAAA,QACR,sBAAsB;AAAA,QACtB,oBAAoB;AAAA,MACrB;AAAA,IACD;AAAA,EACD,CAAE;AACH;","names":["QueryClient"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { QueryClient } from '@tanstack/react-query';\n\nexport {\n\tuseQuery,\n\tuseInfiniteQuery,\n\tuseMutation,\n\tuseQueryClient,\n\tQueryClient,\n\tQueryClientProvider,\n} from '@tanstack/react-query';\n\nexport function createQueryClient() {\n\treturn new QueryClient( {\n\t\tdefaultOptions: {\n\t\t\tqueries: {\n\t\t\t\trefetchOnWindowFocus: false,\n\t\t\t\trefetchOnReconnect: false,\n\t\t\t},\n\t\t},\n\t} );\n}\n"],"mappings":";AAAA,SAAS,mBAAmB;AAE5B;AAAA,EACC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,eAAAA;AAAA,EACA;AAAA,OACM;AAEA,SAAS,oBAAoB;AACnC,SAAO,IAAI,YAAa;AAAA,IACvB,gBAAgB;AAAA,MACf,SAAS;AAAA,QACR,sBAAsB;AAAA,QACtB,oBAAoB;AAAA,MACrB;AAAA,IACD;AAAA,EACD,CAAE;AACH;","names":["QueryClient"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/query",
|
|
3
3
|
"description": "Wrapper around `@tanstack/react-query`",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Elementor Team",
|
|
7
7
|
"homepage": "https://elementor.com/",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@tanstack/react-query": "^5.7.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "780188b3bf19f2d02edabce30374f89b1fecbc07"
|
|
42
42
|
}
|