@graphql-codegen/typescript-react-apollo 3.2.2 → 3.2.4-alpha-6cdbcf02e.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.
Files changed (2) hide show
  1. package/config.d.ts +66 -66
  2. package/package.json +4 -3
package/config.d.ts CHANGED
@@ -6,53 +6,53 @@ import { RawClientSideBasePluginConfig } from '@graphql-codegen/visitor-plugin-c
6
6
  */
7
7
  export interface ReactApolloRawPluginConfig extends RawClientSideBasePluginConfig {
8
8
  /**
9
- * @description Customize the output by enabling/disabling the generated Component (deprecated since Apollo-Client v3). For more details: https://www.apollographql.com/docs/react/api/react/components/
9
+ * @description Customize the output by enabling/disabling the generated Component (deprecated since Apollo-Client v3). For more details: https://apollographql.com/docs/react/api/react/components
10
10
  * @default false
11
11
  *
12
12
  * @exampleMarkdown
13
13
  * ```yml
14
14
  * generates:
15
- * path/to/file.ts:
16
- * plugins:
17
- * - typescript
18
- * - typescript-operations
19
- * - typescript-react-apollo
20
- * config:
21
- * withComponent: true
15
+ * path/to/file.ts:
16
+ * plugins:
17
+ * - typescript
18
+ * - typescript-operations
19
+ * - typescript-react-apollo
20
+ * config:
21
+ * withComponent: true
22
22
  * ```
23
23
  */
24
24
  withComponent?: boolean;
25
25
  /**
26
- * @description Customize the output by enabling/disabling the HOC (deprecated since Apollo-Client v3). For more details: https://www.apollographql.com/docs/react/api/react/hoc/
26
+ * @description Customize the output by enabling/disabling the HOC (deprecated since Apollo-Client v3). For more details: https://apollographql.com/docs/react/api/react/hoc
27
27
  * @default false
28
28
  *
29
29
  * @exampleMarkdown
30
30
  * ```yml
31
31
  * generates:
32
- * path/to/file.ts:
33
- * plugins:
34
- * - typescript
35
- * - typescript-operations
36
- * - typescript-react-apollo
37
- * config:
38
- * withHOC: true
32
+ * path/to/file.ts:
33
+ * plugins:
34
+ * - typescript
35
+ * - typescript-operations
36
+ * - typescript-react-apollo
37
+ * config:
38
+ * withHOC: true
39
39
  * ```
40
40
  */
41
41
  withHOC?: boolean;
42
42
  /**
43
- * @description Customized the output by enabling/disabling the generated React Hooks. For more details: https://www.apollographql.com/docs/react/api/react/hooks/
43
+ * @description Customized the output by enabling/disabling the generated React Hooks. For more details: https://apollographql.com/docs/react/api/react/hooks
44
44
  * @default true
45
45
  *
46
46
  * @exampleMarkdown
47
47
  * ```yml
48
48
  * generates:
49
- * path/to/file.ts:
50
- * plugins:
51
- * - typescript
52
- * - typescript-operations
53
- * - typescript-react-apollo
54
- * config:
55
- * withHooks: true
49
+ * path/to/file.ts:
50
+ * plugins:
51
+ * - typescript
52
+ * - typescript-operations
53
+ * - typescript-react-apollo
54
+ * config:
55
+ * withHooks: true
56
56
  * ```
57
57
  */
58
58
  withHooks?: boolean;
@@ -63,13 +63,13 @@ export interface ReactApolloRawPluginConfig extends RawClientSideBasePluginConfi
63
63
  * @exampleMarkdown
64
64
  * ```yml
65
65
  * generates:
66
- * path/to/file.ts:
67
- * plugins:
68
- * - typescript
69
- * - typescript-operations
70
- * - typescript-react-apollo
71
- * config:
72
- * withMutationFn: true
66
+ * path/to/file.ts:
67
+ * plugins:
68
+ * - typescript
69
+ * - typescript-operations
70
+ * - typescript-react-apollo
71
+ * config:
72
+ * withMutationFn: true
73
73
  * ```
74
74
  */
75
75
  withMutationFn?: boolean;
@@ -80,13 +80,13 @@ export interface ReactApolloRawPluginConfig extends RawClientSideBasePluginConfi
80
80
  * @exampleMarkdown
81
81
  * ```yml
82
82
  * generates:
83
- * path/to/file.ts:
84
- * plugins:
85
- * - typescript
86
- * - typescript-operations
87
- * - typescript-react-apollo
88
- * config:
89
- * withRefetchFn: false
83
+ * path/to/file.ts:
84
+ * plugins:
85
+ * - typescript
86
+ * - typescript-operations
87
+ * - typescript-react-apollo
88
+ * config:
89
+ * withRefetchFn: false
90
90
  * ```
91
91
  */
92
92
  withRefetchFn?: boolean;
@@ -124,13 +124,13 @@ export interface ReactApolloRawPluginConfig extends RawClientSideBasePluginConfi
124
124
  * @exampleMarkdown
125
125
  * ```yml
126
126
  * generates:
127
- * path/to/file.ts:
128
- * plugins:
129
- * - typescript
130
- * - typescript-operations
131
- * - typescript-react-apollo
132
- * config:
133
- * reactApolloVersion: 2
127
+ * path/to/file.ts:
128
+ * plugins:
129
+ * - typescript
130
+ * - typescript-operations
131
+ * - typescript-react-apollo
132
+ * config:
133
+ * reactApolloVersion: 2
134
134
  * ```
135
135
  */
136
136
  reactApolloVersion?: 2 | 3;
@@ -141,13 +141,13 @@ export interface ReactApolloRawPluginConfig extends RawClientSideBasePluginConfi
141
141
  * @exampleMarkdown
142
142
  * ```yml
143
143
  * generates:
144
- * path/to/file.ts:
145
- * plugins:
146
- * - typescript
147
- * - typescript-operations
148
- * - typescript-react-apollo
149
- * config:
150
- * withResultType: true
144
+ * path/to/file.ts:
145
+ * plugins:
146
+ * - typescript
147
+ * - typescript-operations
148
+ * - typescript-react-apollo
149
+ * config:
150
+ * withResultType: true
151
151
  * ```
152
152
  */
153
153
  withResultType?: boolean;
@@ -158,13 +158,13 @@ export interface ReactApolloRawPluginConfig extends RawClientSideBasePluginConfi
158
158
  * @exampleMarkdown
159
159
  * ```yml
160
160
  * generates:
161
- * path/to/file.ts:
162
- * plugins:
163
- * - typescript
164
- * - typescript-operations
165
- * - typescript-react-apollo
166
- * config:
167
- * withMutationOptionsType: true
161
+ * path/to/file.ts:
162
+ * plugins:
163
+ * - typescript
164
+ * - typescript-operations
165
+ * - typescript-react-apollo
166
+ * config:
167
+ * withMutationOptionsType: true
168
168
  * ```
169
169
  */
170
170
  withMutationOptionsType?: boolean;
@@ -176,13 +176,13 @@ export interface ReactApolloRawPluginConfig extends RawClientSideBasePluginConfi
176
176
  * @exampleMarkdown
177
177
  * ```yml
178
178
  * generates:
179
- * path/to/file.ts:
180
- * plugins:
181
- * - typescript
182
- * - typescript-operations
183
- * - typescript-react-apollo
184
- * config:
185
- * addDocBlocks: true
179
+ * path/to/file.ts:
180
+ * plugins:
181
+ * - typescript
182
+ * - typescript-operations
183
+ * - typescript-react-apollo
184
+ * config:
185
+ * addDocBlocks: true
186
186
  * ```
187
187
  */
188
188
  addDocBlocks?: boolean;
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-react-apollo",
3
- "version": "3.2.2",
3
+ "version": "3.2.4-alpha-6cdbcf02e.0",
4
4
  "description": "GraphQL Code Generator plugin for generating a ready-to-use React Components/HOC/Hooks based on GraphQL operations",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
7
7
  "graphql-tag": "^2.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-codegen/plugin-helpers": "^2.3.0",
11
- "@graphql-codegen/visitor-plugin-common": "2.5.1",
10
+ "@graphql-codegen/plugin-helpers": "2.3.3-alpha-6cdbcf02e.0",
11
+ "@graphql-codegen/visitor-plugin-common": "2.5.3-alpha-6cdbcf02e.0",
12
12
  "auto-bind": "~4.0.0",
13
13
  "change-case-all": "1.0.14",
14
14
  "tslib": "~2.3.0"
@@ -26,6 +26,7 @@
26
26
  "definition": "index.d.ts"
27
27
  },
28
28
  "exports": {
29
+ "./package.json": "./package.json",
29
30
  ".": {
30
31
  "require": "./index.js",
31
32
  "import": "./index.mjs"