@constructive-io/graphql-react 5.10.7 → 5.10.8
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/esm/index.js +3 -3
- package/esm/use-constructive-client.js +1 -1
- package/esm/use-graphql-client.js +1 -1
- package/esm/use-introspection.js +2 -2
- package/esm/use-schema-meta.js +1 -1
- package/esm/use-table-rows.js +2 -2
- package/index.d.ts +3 -3
- package/index.js +3 -3
- package/package.json +4 -4
- package/use-constructive-client.js +1 -1
- package/use-graphql-client.js +1 -1
- package/use-introspection.js +2 -2
- package/use-schema-meta.js +1 -1
- package/use-table-rows.js +1 -1
package/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './context';
|
|
2
|
+
export * from './provider';
|
|
2
3
|
export * from './use-constructive-client';
|
|
4
|
+
export * from './use-graphql-client';
|
|
3
5
|
export * from './use-introspection';
|
|
4
6
|
export * from './use-schema-meta';
|
|
5
7
|
export * from './use-table-rows';
|
|
6
|
-
export * from './provider';
|
|
7
|
-
export * from './context';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { MetaObject, QueryBuilder } from '@constructive-io/graphql-query';
|
|
1
2
|
import { useMemo } from 'react';
|
|
2
|
-
import { QueryBuilder, MetaObject } from '@constructive-io/graphql-query';
|
|
3
3
|
import { useIntrospection } from './use-introspection';
|
|
4
4
|
import { useSchemaMeta } from './use-schema-meta';
|
|
5
5
|
export function useConstructiveQuery() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { useState, useMemo, useContext } from 'react';
|
|
3
2
|
import { GraphQLClient } from 'graphql-request';
|
|
3
|
+
import { useContext, useMemo, useState } from 'react';
|
|
4
4
|
import { getLqlContext } from './context';
|
|
5
5
|
export const useGraphqlClient = () => {
|
|
6
6
|
const [endpointUrl, setEndpointUrl] = useState(null);
|
package/esm/use-introspection.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useEffect } from 'react';
|
|
2
|
-
import { useQuery } from 'react-query';
|
|
3
1
|
// @ts-ignore
|
|
4
2
|
import { IntrospectionQuery, parseGraphQuery } from 'introspectron';
|
|
3
|
+
import { useEffect } from 'react';
|
|
4
|
+
import { useQuery } from 'react-query';
|
|
5
5
|
import { useGraphqlClient } from './use-graphql-client';
|
|
6
6
|
const noop = () => { };
|
|
7
7
|
export function useIntrospection(options = {}) {
|
package/esm/use-schema-meta.js
CHANGED
package/esm/use-table-rows.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { useGraphqlClient } from './use-graphql-client';
|
|
3
|
+
import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from 'react-query';
|
|
5
4
|
import { useConstructiveQuery } from './use-constructive-client';
|
|
5
|
+
import { useGraphqlClient } from './use-graphql-client';
|
|
6
6
|
const noop = () => { };
|
|
7
7
|
export function useTableRowsPaginated(options = {}) {
|
|
8
8
|
const { tableName, first, after, last, before, condition, filter, orderBy, onSuccess = noop, onError, skip = false, select, ...restOptions } = options;
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './context';
|
|
2
|
+
export * from './provider';
|
|
2
3
|
export * from './use-constructive-client';
|
|
4
|
+
export * from './use-graphql-client';
|
|
3
5
|
export * from './use-introspection';
|
|
4
6
|
export * from './use-schema-meta';
|
|
5
7
|
export * from './use-table-rows';
|
|
6
|
-
export * from './provider';
|
|
7
|
-
export * from './context';
|
package/index.js
CHANGED
|
@@ -14,10 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./context"), exports);
|
|
18
|
+
__exportStar(require("./provider"), exports);
|
|
18
19
|
__exportStar(require("./use-constructive-client"), exports);
|
|
20
|
+
__exportStar(require("./use-graphql-client"), exports);
|
|
19
21
|
__exportStar(require("./use-introspection"), exports);
|
|
20
22
|
__exportStar(require("./use-schema-meta"), exports);
|
|
21
23
|
__exportStar(require("./use-table-rows"), exports);
|
|
22
|
-
__exportStar(require("./provider"), exports);
|
|
23
|
-
__exportStar(require("./context"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/graphql-react",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.8",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive GraphQL React",
|
|
6
6
|
"main": "index.js",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"test:watch": "jest --watch"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@constructive-io/graphql-query": "^4.11.
|
|
31
|
+
"@constructive-io/graphql-query": "^4.11.8",
|
|
32
32
|
"graphql-request": "^7.1.2",
|
|
33
|
-
"introspectron": "^5.10.
|
|
33
|
+
"introspectron": "^5.10.8",
|
|
34
34
|
"react": "^19.2.4",
|
|
35
35
|
"react-dom": "^19.2.4",
|
|
36
36
|
"react-query": "^3.39.3"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"@types/react": "^19.2.15",
|
|
42
42
|
"makage": "^0.3.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "c20b6be96b39bf71c0e2df0f4b51e05deacd006b"
|
|
45
45
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useConstructiveQuery = useConstructiveQuery;
|
|
4
|
-
const react_1 = require("react");
|
|
5
4
|
const graphql_query_1 = require("@constructive-io/graphql-query");
|
|
5
|
+
const react_1 = require("react");
|
|
6
6
|
const use_introspection_1 = require("./use-introspection");
|
|
7
7
|
const use_schema_meta_1 = require("./use-schema-meta");
|
|
8
8
|
function useConstructiveQuery() {
|
package/use-graphql-client.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useGraphqlClient = void 0;
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
const react_1 = require("react");
|
|
6
5
|
const graphql_request_1 = require("graphql-request");
|
|
6
|
+
const react_1 = require("react");
|
|
7
7
|
const context_1 = require("./context");
|
|
8
8
|
const useGraphqlClient = () => {
|
|
9
9
|
const [endpointUrl, setEndpointUrl] = (0, react_1.useState)(null);
|
package/use-introspection.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useIntrospection = useIntrospection;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const react_query_1 = require("react-query");
|
|
6
4
|
// @ts-ignore
|
|
7
5
|
const introspectron_1 = require("introspectron");
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const react_query_1 = require("react-query");
|
|
8
8
|
const use_graphql_client_1 = require("./use-graphql-client");
|
|
9
9
|
const noop = () => { };
|
|
10
10
|
function useIntrospection(options = {}) {
|
package/use-schema-meta.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useSchemaMeta = useSchemaMeta;
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
const react_1 = require("react");
|
|
6
5
|
const graphql_request_1 = require("graphql-request");
|
|
6
|
+
const react_1 = require("react");
|
|
7
7
|
const react_query_1 = require("react-query");
|
|
8
8
|
const use_graphql_client_1 = require("./use-graphql-client");
|
|
9
9
|
const fieldFragment = `
|
package/use-table-rows.js
CHANGED
|
@@ -7,8 +7,8 @@ exports.useDeleteTableRow = useDeleteTableRow;
|
|
|
7
7
|
// @ts-nocheck
|
|
8
8
|
const react_1 = require("react");
|
|
9
9
|
const react_query_1 = require("react-query");
|
|
10
|
-
const use_graphql_client_1 = require("./use-graphql-client");
|
|
11
10
|
const use_constructive_client_1 = require("./use-constructive-client");
|
|
11
|
+
const use_graphql_client_1 = require("./use-graphql-client");
|
|
12
12
|
const noop = () => { };
|
|
13
13
|
function useTableRowsPaginated(options = {}) {
|
|
14
14
|
const { tableName, first, after, last, before, condition, filter, orderBy, onSuccess = noop, onError, skip = false, select, ...restOptions } = options;
|