@cedarjs/web 6.0.0-canary.2652 → 6.0.0-canary.2657
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/apollo/fragmentRegistry.d.ts +23 -6
- package/dist/apollo/fragmentRegistry.d.ts.map +1 -1
- package/dist/apollo/fragmentRegistry.js +2 -2
- package/dist/apollo/index.d.ts +0 -1
- package/dist/apollo/index.d.ts.map +1 -1
- package/dist/apollo/index.js +2 -25
- package/dist/apollo/suspense.d.ts +0 -1
- package/dist/apollo/suspense.d.ts.map +1 -1
- package/dist/apollo/suspense.js +2 -24
- package/dist/cjs/apollo/fragmentRegistry.d.ts +23 -6
- package/dist/cjs/apollo/fragmentRegistry.d.ts.map +1 -1
- package/dist/cjs/apollo/fragmentRegistry.js +3 -3
- package/dist/cjs/apollo/index.d.ts +0 -1
- package/dist/cjs/apollo/index.d.ts.map +1 -1
- package/dist/cjs/apollo/index.js +1 -16
- package/dist/cjs/apollo/suspense.d.ts +0 -1
- package/dist/cjs/apollo/suspense.d.ts.map +1 -1
- package/dist/cjs/apollo/suspense.js +1 -16
- package/dist/cjs/components/cell/CellErrorBoundary.d.ts +3 -2
- package/dist/cjs/components/cell/CellErrorBoundary.d.ts.map +1 -1
- package/dist/cjs/components/cell/cellTypes.d.ts +3 -3
- package/dist/cjs/components/cell/cellTypes.d.ts.map +1 -1
- package/dist/cjs/components/cell/createCell.d.ts.map +1 -1
- package/dist/cjs/components/cell/createCell.js +2 -2
- package/dist/cjs/components/cell/createCell.test.js +69 -83
- package/dist/cjs/components/cell/createFragmentCell.d.ts.map +1 -1
- package/dist/cjs/components/cell/createFragmentCell.js +1 -2
- package/dist/cjs/components/cell/createFragmentCell.test.js +48 -55
- package/dist/cjs/components/cell/createSuspendingCell.d.ts.map +1 -1
- package/dist/cjs/components/cell/createSuspendingCell.js +2 -3
- package/dist/cjs/components/cell/createSuspendingCell.test.js +18 -37
- package/dist/cjs/global.web-auto-imports.d.ts +0 -16
- package/dist/cjs/global.web-auto-imports.d.ts.map +1 -1
- package/dist/cjs/global.web-auto-imports.js +0 -15
- package/dist/cjs/index.d.ts +4 -3
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +6 -7
- package/dist/components/cell/CellErrorBoundary.d.ts +3 -2
- package/dist/components/cell/CellErrorBoundary.d.ts.map +1 -1
- package/dist/components/cell/cellTypes.d.ts +3 -3
- package/dist/components/cell/cellTypes.d.ts.map +1 -1
- package/dist/components/cell/createCell.d.ts.map +1 -1
- package/dist/components/cell/createCell.js +1 -1
- package/dist/components/cell/createCell.test.js +70 -84
- package/dist/components/cell/createFragmentCell.d.ts.map +1 -1
- package/dist/components/cell/createFragmentCell.js +1 -2
- package/dist/components/cell/createFragmentCell.test.js +49 -56
- package/dist/components/cell/createSuspendingCell.d.ts.map +1 -1
- package/dist/components/cell/createSuspendingCell.js +5 -2
- package/dist/components/cell/createSuspendingCell.test.js +22 -38
- package/dist/global.web-auto-imports.d.ts +0 -16
- package/dist/global.web-auto-imports.d.ts.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -5
- package/package.json +5 -5
- package/dist/apollo/typeOverride.d.ts +0 -21
- package/dist/apollo/typeOverride.d.ts.map +0 -1
- package/dist/apollo/typeOverride.js +0 -0
- package/dist/cjs/apollo/typeOverride.d.ts +0 -21
- package/dist/cjs/apollo/typeOverride.d.ts.map +0 -1
- package/dist/cjs/apollo/typeOverride.js +0 -16
- package/dist/cjs/components/GraphQLHooksProvider.d.ts +0 -77
- package/dist/cjs/components/GraphQLHooksProvider.d.ts.map +0 -1
- package/dist/cjs/components/GraphQLHooksProvider.js +0 -147
- package/dist/components/GraphQLHooksProvider.d.ts +0 -77
- package/dist/components/GraphQLHooksProvider.d.ts.map +0 -1
- package/dist/components/GraphQLHooksProvider.js +0 -105
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { loadErrorMessages, loadDevMessages } from "@apollo/client/dev";
|
|
3
|
+
import {
|
|
4
|
+
useBackgroundQuery,
|
|
5
|
+
useReadQuery
|
|
6
|
+
} from "@apollo/client/react/hooks/hooks.cjs";
|
|
3
7
|
import { render, screen } from "@testing-library/react";
|
|
4
|
-
import { vi, describe, beforeAll, test } from "vitest";
|
|
5
|
-
import { GraphQLHooksProvider } from "../GraphQLHooksProvider.js";
|
|
8
|
+
import { vi, describe, beforeAll, beforeEach, test } from "vitest";
|
|
6
9
|
import { createSuspendingCell } from "./createSuspendingCell.js";
|
|
7
10
|
vi.mock("@apollo/client/react/hooks/hooks.cjs", () => {
|
|
8
11
|
return {
|
|
9
|
-
useApolloClient: vi.fn()
|
|
12
|
+
useApolloClient: vi.fn(),
|
|
13
|
+
useBackgroundQuery: vi.fn(),
|
|
14
|
+
useReadQuery: vi.fn()
|
|
10
15
|
};
|
|
11
16
|
});
|
|
17
|
+
const mockUseBackgroundQuery = useBackgroundQuery;
|
|
18
|
+
const mockUseReadQuery = useReadQuery;
|
|
12
19
|
describe("createSuspendingCell", () => {
|
|
13
20
|
beforeAll(() => {
|
|
14
21
|
globalThis.RWJS_ENV = {
|
|
@@ -17,26 +24,21 @@ describe("createSuspendingCell", () => {
|
|
|
17
24
|
loadDevMessages();
|
|
18
25
|
loadErrorMessages();
|
|
19
26
|
});
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
beforeEach(() => {
|
|
28
|
+
mockUseReadQuery.mockReset();
|
|
29
|
+
mockUseBackgroundQuery.mockReset();
|
|
30
|
+
mockUseBackgroundQuery.mockImplementation(() => {
|
|
31
|
+
return ["mocked-query-ref", { refetch: vi.fn(), fetchMore: vi.fn() }];
|
|
32
|
+
});
|
|
22
33
|
});
|
|
23
|
-
const mockedQueryHook = () => ({ data: {} });
|
|
24
34
|
test("Renders a static Success component", () => {
|
|
25
35
|
const TestCell = createSuspendingCell({
|
|
26
36
|
// @ts-expect-error - Purposefully using a plain string here.
|
|
27
37
|
QUERY: "query TestQuery { answer }",
|
|
28
38
|
Success: () => /* @__PURE__ */ React.createElement(React.Fragment, null, "Great success!")
|
|
29
39
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
GraphQLHooksProvider,
|
|
33
|
-
{
|
|
34
|
-
useBackgroundQuery: mockedUseBgQuery,
|
|
35
|
-
useReadQuery: mockedQueryHook
|
|
36
|
-
},
|
|
37
|
-
/* @__PURE__ */ React.createElement(TestCell, null)
|
|
38
|
-
)
|
|
39
|
-
);
|
|
40
|
+
mockUseReadQuery.mockImplementation(() => ({ data: {} }));
|
|
41
|
+
render(/* @__PURE__ */ React.createElement(TestCell, null));
|
|
40
42
|
screen.getByText(/^Great success!$/);
|
|
41
43
|
});
|
|
42
44
|
test("Renders Success with data", () => {
|
|
@@ -45,19 +47,10 @@ describe("createSuspendingCell", () => {
|
|
|
45
47
|
QUERY: "query TestQuery { answer }",
|
|
46
48
|
Success: ({ answer }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("dl", null, /* @__PURE__ */ React.createElement("dt", null, "What's the meaning of life?"), /* @__PURE__ */ React.createElement("dd", null, answer)))
|
|
47
49
|
});
|
|
48
|
-
|
|
50
|
+
mockUseReadQuery.mockImplementation(() => {
|
|
49
51
|
return { data: { answer: 42 } };
|
|
50
52
|
});
|
|
51
|
-
render(
|
|
52
|
-
/* @__PURE__ */ React.createElement(
|
|
53
|
-
GraphQLHooksProvider,
|
|
54
|
-
{
|
|
55
|
-
useReadQuery: myUseQueryHook,
|
|
56
|
-
useBackgroundQuery: mockedUseBgQuery
|
|
57
|
-
},
|
|
58
|
-
/* @__PURE__ */ React.createElement(TestCell, null)
|
|
59
|
-
)
|
|
60
|
-
);
|
|
53
|
+
render(/* @__PURE__ */ React.createElement(TestCell, null));
|
|
61
54
|
screen.getByText(/^What's the meaning of life\?$/);
|
|
62
55
|
screen.getByText(/^42$/);
|
|
63
56
|
});
|
|
@@ -68,7 +61,7 @@ describe("createSuspendingCell", () => {
|
|
|
68
61
|
Empty: () => /* @__PURE__ */ React.createElement(React.Fragment, null, "No users or posts"),
|
|
69
62
|
Success: ({ users, posts }) => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", null, users.length > 0 ? /* @__PURE__ */ React.createElement("ul", null, users.map(({ name }) => /* @__PURE__ */ React.createElement("li", { key: name }, name))) : "no users"), /* @__PURE__ */ React.createElement("div", null, posts.length > 0 ? /* @__PURE__ */ React.createElement("ul", null, posts.map(({ title }) => /* @__PURE__ */ React.createElement("li", { key: title }, title))) : "no posts"))
|
|
70
63
|
});
|
|
71
|
-
|
|
64
|
+
mockUseReadQuery.mockImplementation(() => {
|
|
72
65
|
return {
|
|
73
66
|
data: {
|
|
74
67
|
users: [],
|
|
@@ -76,16 +69,7 @@ describe("createSuspendingCell", () => {
|
|
|
76
69
|
}
|
|
77
70
|
};
|
|
78
71
|
});
|
|
79
|
-
render(
|
|
80
|
-
/* @__PURE__ */ React.createElement(
|
|
81
|
-
GraphQLHooksProvider,
|
|
82
|
-
{
|
|
83
|
-
useReadQuery: myReadQueryHook,
|
|
84
|
-
useBackgroundQuery: mockedUseBgQuery
|
|
85
|
-
},
|
|
86
|
-
/* @__PURE__ */ React.createElement(TestCell, null)
|
|
87
|
-
)
|
|
88
|
-
);
|
|
72
|
+
render(/* @__PURE__ */ React.createElement(TestCell, null));
|
|
89
73
|
screen.getByText(/bazinga/);
|
|
90
74
|
screen.getByText(/kittens/);
|
|
91
75
|
});
|
|
@@ -10,21 +10,5 @@ declare global {
|
|
|
10
10
|
RWJS_API_URL: string;
|
|
11
11
|
__REDWOOD__APP_TITLE: string;
|
|
12
12
|
}
|
|
13
|
-
type GraphQLOperationVariables = Record<string, any>;
|
|
14
|
-
interface QueryOperationResult<TData = any, TVariables = GraphQLOperationVariables> {
|
|
15
|
-
data: TData | undefined;
|
|
16
|
-
loading: boolean;
|
|
17
|
-
}
|
|
18
|
-
interface MutationOperationResult<TData, TVariables> {
|
|
19
|
-
}
|
|
20
|
-
interface GraphQLQueryHookOptions<TData, TVariables> {
|
|
21
|
-
variables?: TVariables;
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
}
|
|
24
|
-
export interface GraphQLMutationHookOptions<TData, TVariables> {
|
|
25
|
-
variables?: TVariables;
|
|
26
|
-
onCompleted?: (data: TData) => void;
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}
|
|
29
13
|
}
|
|
30
14
|
//# sourceMappingURL=global.web-auto-imports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.web-auto-imports.d.ts","sourceRoot":"","sources":["../src/global.web-auto-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,OAAO,CAAA;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,OAAO,CAAC,MAAM,CAAC;IAMb,MAAM,GAAG,EAAE,CACT,MAAM,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,MAAM,EAAE,EACzD,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,YAAY,CAAA;IAIjB,KAAK,KAAK,GAAG,OAAO,MAAM,CAAA;IAE1B,UAAU,MAAM;QACd,8DAA8D;QAC9D,oBAAoB,EAAE,MAAM,CAAA;QAC5B,mDAAmD;QACnD,YAAY,EAAE,MAAM,CAAA;QACpB,oBAAoB,EAAE,MAAM,CAAA;KAC7B;
|
|
1
|
+
{"version":3,"file":"global.web-auto-imports.d.ts","sourceRoot":"","sources":["../src/global.web-auto-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,OAAO,CAAA;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3C,OAAO,CAAC,MAAM,CAAC;IAMb,MAAM,GAAG,EAAE,CACT,MAAM,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,MAAM,EAAE,EACzD,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,YAAY,CAAA;IAIjB,KAAK,KAAK,GAAG,OAAO,MAAM,CAAA;IAE1B,UAAU,MAAM;QACd,8DAA8D;QAC9D,oBAAoB,EAAE,MAAM,CAAA;QAC5B,mDAAmD;QACnD,YAAY,EAAE,MAAM,CAAA;QACpB,oBAAoB,EAAE,MAAM,CAAA;KAC7B;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import './global.web-auto-imports.js';
|
|
|
2
2
|
import './config.js';
|
|
3
3
|
export { FatalErrorBoundary } from './components/FatalErrorBoundary.js';
|
|
4
4
|
export { FetchConfigProvider, useFetchConfig, } from './components/FetchConfigProvider.js';
|
|
5
|
-
export {
|
|
6
|
-
export
|
|
5
|
+
export { useQuery, useMutation, useSubscription, } from '@apollo/client/react/hooks/hooks.cjs';
|
|
6
|
+
export { useFragment } from './apollo/fragmentRegistry.js';
|
|
7
|
+
export type { FragmentHookOptions, FragmentHookResult, } from './apollo/fragmentRegistry.js';
|
|
7
8
|
export * from './components/cell/CellCacheContext.js';
|
|
8
9
|
export { createCell } from './components/cell/createCell.js';
|
|
9
10
|
export { createFragmentCell } from './components/cell/createFragmentCell.js';
|
|
@@ -17,5 +18,5 @@ export { Helmet as Head, Helmet };
|
|
|
17
18
|
export * from './components/htmlTags.js';
|
|
18
19
|
export * from './routeHooks.types.js';
|
|
19
20
|
export * from './components/ServerInject.js';
|
|
20
|
-
export type { TypedDocumentNode } from '
|
|
21
|
+
export type { TypedDocumentNode } from '@apollo/client';
|
|
21
22
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AACrC,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAEvE,OAAO,EACL,mBAAmB,EACnB,cAAc,GACf,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AACrC,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAA;AAEvE,OAAO,EACL,mBAAmB,EACnB,cAAc,GACf,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,QAAQ,EACR,WAAW,EACX,eAAe,GAChB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,YAAY,EACV,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,8BAA8B,CAAA;AAErC,cAAc,uCAAuC,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AAE5E,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,GAChB,MAAM,gCAAgC,CAAA;AAEvC,cAAc,cAAc,CAAA;AAE5B,cAAc,iCAAiC,CAAA;AAE/C,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACjD,OAAO,EAAE,MAAM,IAAI,IAAI,EAAE,MAAM,EAAE,CAAA;AAEjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,uBAAuB,CAAA;AAErC,cAAc,8BAA8B,CAAA;AAE5C,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -6,12 +6,11 @@ import {
|
|
|
6
6
|
useFetchConfig
|
|
7
7
|
} from "./components/FetchConfigProvider.js";
|
|
8
8
|
import {
|
|
9
|
-
GraphQLHooksProvider,
|
|
10
9
|
useQuery,
|
|
11
10
|
useMutation,
|
|
12
|
-
useSubscription
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
11
|
+
useSubscription
|
|
12
|
+
} from "@apollo/client/react/hooks/hooks.cjs";
|
|
13
|
+
import { useFragment } from "./apollo/fragmentRegistry.js";
|
|
15
14
|
export * from "./components/cell/CellCacheContext.js";
|
|
16
15
|
import { createCell } from "./components/cell/createCell.js";
|
|
17
16
|
import { createFragmentCell } from "./components/cell/createFragmentCell.js";
|
|
@@ -26,7 +25,6 @@ export * from "./components/ServerInject.js";
|
|
|
26
25
|
export {
|
|
27
26
|
FatalErrorBoundary,
|
|
28
27
|
FetchConfigProvider,
|
|
29
|
-
GraphQLHooksProvider,
|
|
30
28
|
Helmet as Head,
|
|
31
29
|
Helmet,
|
|
32
30
|
createCell,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/web",
|
|
3
|
-
"version": "6.0.0-canary.
|
|
3
|
+
"version": "6.0.0-canary.2657",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
},
|
|
141
141
|
"dependencies": {
|
|
142
142
|
"@apollo/client": "3.14.1",
|
|
143
|
-
"@cedarjs/server-store": "6.0.0-canary.
|
|
143
|
+
"@cedarjs/server-store": "6.0.0-canary.2657",
|
|
144
144
|
"@dr.pogodin/react-helmet": "2.0.4",
|
|
145
145
|
"@whatwg-node/fetch": "0.10.13",
|
|
146
146
|
"apollo-upload-client": "18.0.1",
|
|
@@ -159,9 +159,9 @@
|
|
|
159
159
|
"@babel/core": "^7.26.10",
|
|
160
160
|
"@babel/plugin-transform-runtime": "7.29.7",
|
|
161
161
|
"@babel/runtime": "7.29.7",
|
|
162
|
-
"@cedarjs/auth": "6.0.0-canary.
|
|
163
|
-
"@cedarjs/framework-tools": "6.0.0-canary.
|
|
164
|
-
"@cedarjs/internal": "6.0.0-canary.
|
|
162
|
+
"@cedarjs/auth": "6.0.0-canary.2657",
|
|
163
|
+
"@cedarjs/framework-tools": "6.0.0-canary.2657",
|
|
164
|
+
"@cedarjs/internal": "6.0.0-canary.2657",
|
|
165
165
|
"@rollup/plugin-babel": "6.1.0",
|
|
166
166
|
"@testing-library/dom": "10.4.1",
|
|
167
167
|
"@testing-library/jest-dom": "6.9.1",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { QueryHookOptions, QueryResult, MutationHookOptions, MutationTuple, OperationVariables, SubscriptionHookOptions, SubscriptionResult, UseSuspenseQueryResult, SuspenseQueryHookOptions } from '@apollo/client';
|
|
2
|
-
declare global {
|
|
3
|
-
interface QueryOperationResult<TData = any, TVariables extends OperationVariables = OperationVariables> extends QueryResult<TData, TVariables> {
|
|
4
|
-
}
|
|
5
|
-
interface MutationOperationResult<TData, TVariables> extends MutationTuple<TData, TVariables> {
|
|
6
|
-
}
|
|
7
|
-
interface SubscriptionOperationResult<TData = any, TVariables extends OperationVariables = OperationVariables> extends SubscriptionResult<TData, TVariables> {
|
|
8
|
-
}
|
|
9
|
-
interface GraphQLQueryHookOptions<TData, TVariables extends OperationVariables> extends QueryHookOptions<TData, TVariables> {
|
|
10
|
-
}
|
|
11
|
-
interface GraphQLMutationHookOptions<TData, TVariables> extends MutationHookOptions<TData, TVariables> {
|
|
12
|
-
}
|
|
13
|
-
interface GraphQLSubscriptionHookOptions<TData, TVariables extends OperationVariables> extends SubscriptionHookOptions<TData, TVariables> {
|
|
14
|
-
}
|
|
15
|
-
interface SuspenseQueryOperationResult<TData = any, TVariables extends OperationVariables = OperationVariables> extends UseSuspenseQueryResult<TData, TVariables> {
|
|
16
|
-
}
|
|
17
|
-
interface GraphQLSuspenseQueryHookOptions<TData, TVariables extends OperationVariables> extends SuspenseQueryHookOptions<TData, TVariables> {
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
21
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C,KAAK,EACL,UAAU,SAAS,kBAAkB,CACrC,SAAQ,wBAAwB,CAAC,KAAK,EAAE,UAAU,CAAC;KAAG;CACzD;AAED,OAAO,EAAE,CAAA"}
|
|
File without changes
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { QueryHookOptions, QueryResult, MutationHookOptions, MutationTuple, OperationVariables, SubscriptionHookOptions, SubscriptionResult, UseSuspenseQueryResult, SuspenseQueryHookOptions } from '@apollo/client';
|
|
2
|
-
declare global {
|
|
3
|
-
interface QueryOperationResult<TData = any, TVariables extends OperationVariables = OperationVariables> extends QueryResult<TData, TVariables> {
|
|
4
|
-
}
|
|
5
|
-
interface MutationOperationResult<TData, TVariables> extends MutationTuple<TData, TVariables> {
|
|
6
|
-
}
|
|
7
|
-
interface SubscriptionOperationResult<TData = any, TVariables extends OperationVariables = OperationVariables> extends SubscriptionResult<TData, TVariables> {
|
|
8
|
-
}
|
|
9
|
-
interface GraphQLQueryHookOptions<TData, TVariables extends OperationVariables> extends QueryHookOptions<TData, TVariables> {
|
|
10
|
-
}
|
|
11
|
-
interface GraphQLMutationHookOptions<TData, TVariables> extends MutationHookOptions<TData, TVariables> {
|
|
12
|
-
}
|
|
13
|
-
interface GraphQLSubscriptionHookOptions<TData, TVariables extends OperationVariables> extends SubscriptionHookOptions<TData, TVariables> {
|
|
14
|
-
}
|
|
15
|
-
interface SuspenseQueryOperationResult<TData = any, TVariables extends OperationVariables = OperationVariables> extends UseSuspenseQueryResult<TData, TVariables> {
|
|
16
|
-
}
|
|
17
|
-
interface GraphQLSuspenseQueryHookOptions<TData, TVariables extends OperationVariables> extends SuspenseQueryHookOptions<TData, TVariables> {
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=typeOverride.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typeOverride.d.ts","sourceRoot":"","sources":["../../../src/apollo/typeOverride.ts"],"names":[],"mappings":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@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var typeOverride_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(typeOverride_exports);
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { OperationVariables, useBackgroundQuery as apolloUseBackgroundQuery, useReadQuery as apolloUseReadQuery } from '@apollo/client';
|
|
3
|
-
import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
4
|
-
import type { DocumentNode } from 'graphql';
|
|
5
|
-
export type { TypedDocumentNode };
|
|
6
|
-
/**
|
|
7
|
-
* @NOTE
|
|
8
|
-
* The types QueryOperationResult, MutationOperationResult, SubscriptionOperationResult, and SuspenseQueryOperationResult
|
|
9
|
-
* are overridden in packages/web/src/apollo/typeOverride.ts. This was originally so that you could bring your own gql client.
|
|
10
|
-
*
|
|
11
|
-
* The default (empty) types are defined in packages/web/src/global.web-auto-imports.ts
|
|
12
|
-
*
|
|
13
|
-
* Do not import types for hooks directly from Apollo here, unless it is an Apollo specific hook.
|
|
14
|
-
*/
|
|
15
|
-
type DefaultUseQueryType = <TData = any, TVariables extends OperationVariables = GraphQLOperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLQueryHookOptions<TData, TVariables>) => QueryOperationResult<TData, TVariables>;
|
|
16
|
-
type DefaultUseMutationType = <TData = any, TVariables = GraphQLOperationVariables>(mutation: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLMutationHookOptions<TData, TVariables>) => MutationOperationResult<TData, TVariables>;
|
|
17
|
-
type DefaultUseSubscriptionType = <TData = any, TVariables extends OperationVariables = GraphQLOperationVariables>(subscription: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLSubscriptionHookOptions<TData, TVariables>) => SubscriptionOperationResult<TData, TVariables>;
|
|
18
|
-
type DefaultUseSuspenseType = <TData = any, TVariables extends OperationVariables = GraphQLOperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLSuspenseQueryHookOptions<TData, TVariables>) => SuspenseQueryOperationResult<TData, TVariables>;
|
|
19
|
-
export interface FragmentHookOptions {
|
|
20
|
-
fragment: DocumentNode;
|
|
21
|
-
fragmentName?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The object to read the fragment data for. Usually a cache reference like
|
|
24
|
-
* `{ __typename: 'User', id: 1 }`, but any object that the GraphQL client
|
|
25
|
-
* can identify works.
|
|
26
|
-
*/
|
|
27
|
-
from: Record<string, unknown>;
|
|
28
|
-
}
|
|
29
|
-
export interface FragmentHookResult<TData = any> {
|
|
30
|
-
/**
|
|
31
|
-
* The fragment data read from the client's cache, or `undefined` if the
|
|
32
|
-
* cache doesn't (yet) contain complete data for the fragment.
|
|
33
|
-
*/
|
|
34
|
-
data: TData | undefined;
|
|
35
|
-
complete: boolean;
|
|
36
|
-
}
|
|
37
|
-
type DefaultUseFragmentType = <TData = any>(options: FragmentHookOptions) => FragmentHookResult<TData>;
|
|
38
|
-
export interface GraphQLHooks<TuseQuery = DefaultUseQueryType, TuseMutation = DefaultUseMutationType, TuseSubscription = DefaultUseSubscriptionType, TuseSuspenseQuery = DefaultUseSuspenseType> {
|
|
39
|
-
useQuery: TuseQuery;
|
|
40
|
-
useMutation: TuseMutation;
|
|
41
|
-
useSubscription: TuseSubscription;
|
|
42
|
-
useSuspenseQuery: TuseSuspenseQuery;
|
|
43
|
-
useBackgroundQuery: typeof apolloUseBackgroundQuery;
|
|
44
|
-
useReadQuery: typeof apolloUseReadQuery;
|
|
45
|
-
/**
|
|
46
|
-
* Synchronously read fragment data from the GraphQL client's cache.
|
|
47
|
-
* Optional so that custom GraphQL clients don't have to provide an
|
|
48
|
-
* implementation. Fragment Cells fall back to reading data from their
|
|
49
|
-
* data prop when this reports an incomplete result.
|
|
50
|
-
*/
|
|
51
|
-
useFragment?: DefaultUseFragmentType;
|
|
52
|
-
}
|
|
53
|
-
export declare const GraphQLHooksContext: React.Context<GraphQLHooks<DefaultUseQueryType, DefaultUseMutationType, DefaultUseSubscriptionType, DefaultUseSuspenseType>>;
|
|
54
|
-
interface GraphQlHooksProviderProps<TuseQuery = DefaultUseQueryType, TuseMutation = DefaultUseMutationType, TuseSubscription = DefaultUseSubscriptionType, TuseSuspenseQuery = DefaultUseSuspenseType> extends GraphQLHooks<TuseQuery, TuseMutation, TuseSubscription, TuseSuspenseQuery> {
|
|
55
|
-
children: React.ReactNode;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* GraphQLHooksProvider stores standard `useQuery` and `useMutation` hooks for Redwood
|
|
59
|
-
* that can be mapped to your GraphQL library of choice's own `useQuery`
|
|
60
|
-
* and `useMutation` implementation.
|
|
61
|
-
*
|
|
62
|
-
* @todo Let the user pass in the additional type for options.
|
|
63
|
-
*/
|
|
64
|
-
export declare const GraphQLHooksProvider: <TuseQuery extends DefaultUseQueryType, TuseMutation extends DefaultUseMutationType>({ useQuery, useMutation, useSubscription, useSuspenseQuery, useBackgroundQuery, useReadQuery, useFragment, children, }: GraphQlHooksProviderProps<TuseQuery, TuseMutation>) => React.JSX.Element;
|
|
65
|
-
export declare function useQuery<TData = any, TVariables extends OperationVariables = GraphQLOperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLQueryHookOptions<TData, TVariables>): QueryOperationResult<TData, TVariables>;
|
|
66
|
-
export declare function useMutation<TData = any, TVariables = GraphQLOperationVariables>(mutation: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLMutationHookOptions<TData, TVariables>): MutationOperationResult<TData, TVariables>;
|
|
67
|
-
export declare function useSubscription<TData = any, TVariables extends OperationVariables = GraphQLOperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLSubscriptionHookOptions<TData, TVariables>): SubscriptionOperationResult<TData, TVariables>;
|
|
68
|
-
export declare function useSuspenseQuery<TData = any, TVariables extends OperationVariables = GraphQLOperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLSuspenseQueryHookOptions<TData, TVariables>): SuspenseQueryOperationResult<TData, TVariables>;
|
|
69
|
-
export declare const useBackgroundQuery: typeof apolloUseBackgroundQuery<any>;
|
|
70
|
-
export declare const useReadQuery: typeof apolloUseReadQuery;
|
|
71
|
-
/**
|
|
72
|
-
* Read fragment data from the GraphQL client's cache without firing a
|
|
73
|
-
* network request. Used by fragment Cells (Cells that export `FRAGMENT`
|
|
74
|
-
* instead of `QUERY`).
|
|
75
|
-
*/
|
|
76
|
-
export declare function useFragment<TData = any>(options: FragmentHookOptions): FragmentHookResult<TData>;
|
|
77
|
-
//# sourceMappingURL=GraphQLHooksProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GraphQLHooksProvider.d.ts","sourceRoot":"","sources":["../../../src/components/GraphQLHooksProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,IAAI,wBAAwB,EAC9C,YAAY,IAAI,kBAAkB,EACnC,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mC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OAAO,kBAEjC,CAAA;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,GAAG,GAAG,EACrC,OAAO,EAAE,mBAAmB,GAC3B,kBAAkB,CAAC,KAAK,CAAC,CAK3B"}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var GraphQLHooksProvider_exports = {};
|
|
30
|
-
__export(GraphQLHooksProvider_exports, {
|
|
31
|
-
GraphQLHooksContext: () => GraphQLHooksContext,
|
|
32
|
-
GraphQLHooksProvider: () => GraphQLHooksProvider,
|
|
33
|
-
useBackgroundQuery: () => useBackgroundQuery,
|
|
34
|
-
useFragment: () => useFragment,
|
|
35
|
-
useMutation: () => useMutation,
|
|
36
|
-
useQuery: () => useQuery,
|
|
37
|
-
useReadQuery: () => useReadQuery,
|
|
38
|
-
useSubscription: () => useSubscription,
|
|
39
|
-
useSuspenseQuery: () => useSuspenseQuery
|
|
40
|
-
});
|
|
41
|
-
module.exports = __toCommonJS(GraphQLHooksProvider_exports);
|
|
42
|
-
var import_react = __toESM(require("react"), 1);
|
|
43
|
-
const incompleteFragmentRead = () => {
|
|
44
|
-
return { data: void 0, complete: false };
|
|
45
|
-
};
|
|
46
|
-
const GraphQLHooksContext = import_react.default.createContext({
|
|
47
|
-
useQuery: () => {
|
|
48
|
-
throw new Error(
|
|
49
|
-
"You must register a useQuery hook via the `GraphQLHooksProvider`"
|
|
50
|
-
);
|
|
51
|
-
},
|
|
52
|
-
useMutation: () => {
|
|
53
|
-
throw new Error(
|
|
54
|
-
"You must register a useMutation hook via the `GraphQLHooksProvider`"
|
|
55
|
-
);
|
|
56
|
-
},
|
|
57
|
-
useSubscription: () => {
|
|
58
|
-
throw new Error(
|
|
59
|
-
"You must register a useSubscription hook via the `GraphQLHooksProvider`"
|
|
60
|
-
);
|
|
61
|
-
},
|
|
62
|
-
useSuspenseQuery: () => {
|
|
63
|
-
throw new Error(
|
|
64
|
-
"You must register a useSuspenseQuery hook via the `GraphQLHooksProvider`."
|
|
65
|
-
);
|
|
66
|
-
},
|
|
67
|
-
// These are apollo specific hooks!
|
|
68
|
-
useBackgroundQuery: () => {
|
|
69
|
-
throw new Error(
|
|
70
|
-
"You must register a useBackgroundQuery hook via the `GraphQLHooksProvider`."
|
|
71
|
-
);
|
|
72
|
-
},
|
|
73
|
-
useReadQuery: () => {
|
|
74
|
-
throw new Error(
|
|
75
|
-
"You must register a useReadQuery hook via the `GraphQLHooksProvider`."
|
|
76
|
-
);
|
|
77
|
-
},
|
|
78
|
-
useFragment: incompleteFragmentRead
|
|
79
|
-
});
|
|
80
|
-
const GraphQLHooksProvider = ({
|
|
81
|
-
useQuery: useQuery2,
|
|
82
|
-
useMutation: useMutation2,
|
|
83
|
-
useSubscription: useSubscription2,
|
|
84
|
-
useSuspenseQuery: useSuspenseQuery2,
|
|
85
|
-
useBackgroundQuery: useBackgroundQuery2,
|
|
86
|
-
useReadQuery: useReadQuery2,
|
|
87
|
-
useFragment: useFragment2,
|
|
88
|
-
children
|
|
89
|
-
}) => {
|
|
90
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
91
|
-
GraphQLHooksContext.Provider,
|
|
92
|
-
{
|
|
93
|
-
value: {
|
|
94
|
-
useQuery: useQuery2,
|
|
95
|
-
useMutation: useMutation2,
|
|
96
|
-
useSubscription: useSubscription2,
|
|
97
|
-
useSuspenseQuery: useSuspenseQuery2,
|
|
98
|
-
useBackgroundQuery: useBackgroundQuery2,
|
|
99
|
-
useReadQuery: useReadQuery2,
|
|
100
|
-
useFragment: useFragment2 ?? incompleteFragmentRead
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
children
|
|
104
|
-
);
|
|
105
|
-
};
|
|
106
|
-
function useQuery(query, options) {
|
|
107
|
-
return import_react.default.useContext(GraphQLHooksContext).useQuery(
|
|
108
|
-
query,
|
|
109
|
-
options
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
function useMutation(mutation, options) {
|
|
113
|
-
return import_react.default.useContext(GraphQLHooksContext).useMutation(
|
|
114
|
-
mutation,
|
|
115
|
-
options
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
function useSubscription(query, options) {
|
|
119
|
-
return import_react.default.useContext(GraphQLHooksContext).useSubscription(query, options);
|
|
120
|
-
}
|
|
121
|
-
function useSuspenseQuery(query, options) {
|
|
122
|
-
return import_react.default.useContext(GraphQLHooksContext).useSuspenseQuery(query, options);
|
|
123
|
-
}
|
|
124
|
-
const useBackgroundQuery = (...args) => {
|
|
125
|
-
return import_react.default.useContext(GraphQLHooksContext).useBackgroundQuery(
|
|
126
|
-
...args
|
|
127
|
-
);
|
|
128
|
-
};
|
|
129
|
-
const useReadQuery = (...args) => {
|
|
130
|
-
return import_react.default.useContext(GraphQLHooksContext).useReadQuery(...args);
|
|
131
|
-
};
|
|
132
|
-
function useFragment(options) {
|
|
133
|
-
const useFragmentHook = import_react.default.useContext(GraphQLHooksContext).useFragment ?? incompleteFragmentRead;
|
|
134
|
-
return useFragmentHook(options);
|
|
135
|
-
}
|
|
136
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
137
|
-
0 && (module.exports = {
|
|
138
|
-
GraphQLHooksContext,
|
|
139
|
-
GraphQLHooksProvider,
|
|
140
|
-
useBackgroundQuery,
|
|
141
|
-
useFragment,
|
|
142
|
-
useMutation,
|
|
143
|
-
useQuery,
|
|
144
|
-
useReadQuery,
|
|
145
|
-
useSubscription,
|
|
146
|
-
useSuspenseQuery
|
|
147
|
-
});
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { OperationVariables, useBackgroundQuery as apolloUseBackgroundQuery, useReadQuery as apolloUseReadQuery } from '@apollo/client';
|
|
3
|
-
import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
4
|
-
import type { DocumentNode } from 'graphql';
|
|
5
|
-
export type { TypedDocumentNode };
|
|
6
|
-
/**
|
|
7
|
-
* @NOTE
|
|
8
|
-
* The types QueryOperationResult, MutationOperationResult, SubscriptionOperationResult, and SuspenseQueryOperationResult
|
|
9
|
-
* are overridden in packages/web/src/apollo/typeOverride.ts. This was originally so that you could bring your own gql client.
|
|
10
|
-
*
|
|
11
|
-
* The default (empty) types are defined in packages/web/src/global.web-auto-imports.ts
|
|
12
|
-
*
|
|
13
|
-
* Do not import types for hooks directly from Apollo here, unless it is an Apollo specific hook.
|
|
14
|
-
*/
|
|
15
|
-
type DefaultUseQueryType = <TData = any, TVariables extends OperationVariables = GraphQLOperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLQueryHookOptions<TData, TVariables>) => QueryOperationResult<TData, TVariables>;
|
|
16
|
-
type DefaultUseMutationType = <TData = any, TVariables = GraphQLOperationVariables>(mutation: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLMutationHookOptions<TData, TVariables>) => MutationOperationResult<TData, TVariables>;
|
|
17
|
-
type DefaultUseSubscriptionType = <TData = any, TVariables extends OperationVariables = GraphQLOperationVariables>(subscription: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLSubscriptionHookOptions<TData, TVariables>) => SubscriptionOperationResult<TData, TVariables>;
|
|
18
|
-
type DefaultUseSuspenseType = <TData = any, TVariables extends OperationVariables = GraphQLOperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLSuspenseQueryHookOptions<TData, TVariables>) => SuspenseQueryOperationResult<TData, TVariables>;
|
|
19
|
-
export interface FragmentHookOptions {
|
|
20
|
-
fragment: DocumentNode;
|
|
21
|
-
fragmentName?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The object to read the fragment data for. Usually a cache reference like
|
|
24
|
-
* `{ __typename: 'User', id: 1 }`, but any object that the GraphQL client
|
|
25
|
-
* can identify works.
|
|
26
|
-
*/
|
|
27
|
-
from: Record<string, unknown>;
|
|
28
|
-
}
|
|
29
|
-
export interface FragmentHookResult<TData = any> {
|
|
30
|
-
/**
|
|
31
|
-
* The fragment data read from the client's cache, or `undefined` if the
|
|
32
|
-
* cache doesn't (yet) contain complete data for the fragment.
|
|
33
|
-
*/
|
|
34
|
-
data: TData | undefined;
|
|
35
|
-
complete: boolean;
|
|
36
|
-
}
|
|
37
|
-
type DefaultUseFragmentType = <TData = any>(options: FragmentHookOptions) => FragmentHookResult<TData>;
|
|
38
|
-
export interface GraphQLHooks<TuseQuery = DefaultUseQueryType, TuseMutation = DefaultUseMutationType, TuseSubscription = DefaultUseSubscriptionType, TuseSuspenseQuery = DefaultUseSuspenseType> {
|
|
39
|
-
useQuery: TuseQuery;
|
|
40
|
-
useMutation: TuseMutation;
|
|
41
|
-
useSubscription: TuseSubscription;
|
|
42
|
-
useSuspenseQuery: TuseSuspenseQuery;
|
|
43
|
-
useBackgroundQuery: typeof apolloUseBackgroundQuery;
|
|
44
|
-
useReadQuery: typeof apolloUseReadQuery;
|
|
45
|
-
/**
|
|
46
|
-
* Synchronously read fragment data from the GraphQL client's cache.
|
|
47
|
-
* Optional so that custom GraphQL clients don't have to provide an
|
|
48
|
-
* implementation. Fragment Cells fall back to reading data from their
|
|
49
|
-
* data prop when this reports an incomplete result.
|
|
50
|
-
*/
|
|
51
|
-
useFragment?: DefaultUseFragmentType;
|
|
52
|
-
}
|
|
53
|
-
export declare const GraphQLHooksContext: React.Context<GraphQLHooks<DefaultUseQueryType, DefaultUseMutationType, DefaultUseSubscriptionType, DefaultUseSuspenseType>>;
|
|
54
|
-
interface GraphQlHooksProviderProps<TuseQuery = DefaultUseQueryType, TuseMutation = DefaultUseMutationType, TuseSubscription = DefaultUseSubscriptionType, TuseSuspenseQuery = DefaultUseSuspenseType> extends GraphQLHooks<TuseQuery, TuseMutation, TuseSubscription, TuseSuspenseQuery> {
|
|
55
|
-
children: React.ReactNode;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* GraphQLHooksProvider stores standard `useQuery` and `useMutation` hooks for Redwood
|
|
59
|
-
* that can be mapped to your GraphQL library of choice's own `useQuery`
|
|
60
|
-
* and `useMutation` implementation.
|
|
61
|
-
*
|
|
62
|
-
* @todo Let the user pass in the additional type for options.
|
|
63
|
-
*/
|
|
64
|
-
export declare const GraphQLHooksProvider: <TuseQuery extends DefaultUseQueryType, TuseMutation extends DefaultUseMutationType>({ useQuery, useMutation, useSubscription, useSuspenseQuery, useBackgroundQuery, useReadQuery, useFragment, children, }: GraphQlHooksProviderProps<TuseQuery, TuseMutation>) => React.JSX.Element;
|
|
65
|
-
export declare function useQuery<TData = any, TVariables extends OperationVariables = GraphQLOperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLQueryHookOptions<TData, TVariables>): QueryOperationResult<TData, TVariables>;
|
|
66
|
-
export declare function useMutation<TData = any, TVariables = GraphQLOperationVariables>(mutation: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLMutationHookOptions<TData, TVariables>): MutationOperationResult<TData, TVariables>;
|
|
67
|
-
export declare function useSubscription<TData = any, TVariables extends OperationVariables = GraphQLOperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLSubscriptionHookOptions<TData, TVariables>): SubscriptionOperationResult<TData, TVariables>;
|
|
68
|
-
export declare function useSuspenseQuery<TData = any, TVariables extends OperationVariables = GraphQLOperationVariables>(query: DocumentNode | TypedDocumentNode<TData, TVariables>, options?: GraphQLSuspenseQueryHookOptions<TData, TVariables>): SuspenseQueryOperationResult<TData, TVariables>;
|
|
69
|
-
export declare const useBackgroundQuery: typeof apolloUseBackgroundQuery<any>;
|
|
70
|
-
export declare const useReadQuery: typeof apolloUseReadQuery;
|
|
71
|
-
/**
|
|
72
|
-
* Read fragment data from the GraphQL client's cache without firing a
|
|
73
|
-
* network request. Used by fragment Cells (Cells that export `FRAGMENT`
|
|
74
|
-
* instead of `QUERY`).
|
|
75
|
-
*/
|
|
76
|
-
export declare function useFragment<TData = any>(options: FragmentHookOptions): FragmentHookResult<TData>;
|
|
77
|
-
//# sourceMappingURL=GraphQLHooksProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GraphQLHooksProvider.d.ts","sourceRoot":"","sources":["../../src/components/GraphQLHooksProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,IAA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