react-relay 0.0.0-main-44d06d6c → 0.0.0-main-d112a76d
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/ReactRelayContext.js +1 -1
- package/ReactRelayTypes.d.ts +12 -12
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/legacy.js +1 -1
- package/package.json +2 -2
- package/relay-hooks/EntryPointTypes.flow.js.flow +1 -1
- package/rsc-client_EXPERIMENTAL.js +1 -1
- package/rsc_EXPERIMENTAL.js +1 -1
package/ReactRelayContext.js
CHANGED
package/ReactRelayTypes.d.ts
CHANGED
|
@@ -178,20 +178,20 @@ export type PreloadQueryStatus = Readonly<{
|
|
|
178
178
|
* TExtraProps - a bag of extra props that you may define in `entrypoint` file
|
|
179
179
|
* and they will be passed to the EntryPointComponent as `extraProps`
|
|
180
180
|
*/
|
|
181
|
-
|
|
181
|
+
interface InternalEntryPointRepresentation<
|
|
182
182
|
TEntryPointParams extends Record<string, unknown>,
|
|
183
183
|
TPreloadedQueries extends Record<string, OperationType>,
|
|
184
|
-
TNestedEntryPoints extends Record<string,
|
|
184
|
+
TNestedEntryPoints extends Record<string, any>,
|
|
185
185
|
TRuntimeProps extends Record<string, unknown>,
|
|
186
186
|
TExtraProps extends Record<string, unknown> | null,
|
|
187
|
-
>
|
|
188
|
-
root: JSResourceReference<
|
|
187
|
+
> {
|
|
188
|
+
readonly root: JSResourceReference<
|
|
189
189
|
EntryPointComponent<TPreloadedQueries, TNestedEntryPoints, TRuntimeProps, TExtraProps>
|
|
190
190
|
>;
|
|
191
|
-
getPreloadProps: (
|
|
191
|
+
readonly getPreloadProps: (
|
|
192
192
|
entryPointParams: TEntryPointParams,
|
|
193
193
|
) => PreloadProps<TEntryPointParams, TPreloadedQueries, TNestedEntryPoints, TExtraProps>;
|
|
194
|
-
}
|
|
194
|
+
}
|
|
195
195
|
|
|
196
196
|
type ThinQueryParamsObject<TPreloadedQueries extends Record<string, OperationType> = Record<string, never>> = {
|
|
197
197
|
[K in keyof TPreloadedQueries]: ThinQueryParams<TPreloadedQueries[K]>;
|
|
@@ -229,12 +229,12 @@ export type PreloadProps<
|
|
|
229
229
|
queries?: ThinQueryParamsObject<TPreloadedQueries> | undefined;
|
|
230
230
|
}>;
|
|
231
231
|
|
|
232
|
-
export
|
|
233
|
-
entryPoints: PreloadedEntryPoints<TNestedEntryPoints>;
|
|
234
|
-
extraProps: TExtraProps;
|
|
235
|
-
props: TRuntimeProps;
|
|
236
|
-
queries: PreloadedQueries<TPreloadedQueries>;
|
|
237
|
-
}
|
|
232
|
+
export interface EntryPointProps<TPreloadedQueries, TNestedEntryPoints, TRuntimeProps, TExtraProps> {
|
|
233
|
+
readonly entryPoints: PreloadedEntryPoints<TNestedEntryPoints>;
|
|
234
|
+
readonly extraProps: TExtraProps;
|
|
235
|
+
readonly props: TRuntimeProps;
|
|
236
|
+
readonly queries: PreloadedQueries<TPreloadedQueries>;
|
|
237
|
+
}
|
|
238
238
|
|
|
239
239
|
export type EntryPointComponent<
|
|
240
240
|
TPreloadedQueries extends Record<string, OperationType>,
|
package/hooks.js
CHANGED
package/index.js
CHANGED
package/legacy.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-relay",
|
|
3
3
|
"description": "A framework for building GraphQL-driven React applications.",
|
|
4
|
-
"version": "0.0.0-main-
|
|
4
|
+
"version": "0.0.0-main-d112a76d",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
7
7
|
"relay",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"fbjs": "^3.0.2",
|
|
21
21
|
"invariant": "^2.2.4",
|
|
22
22
|
"nullthrows": "^1.1.1",
|
|
23
|
-
"relay-runtime": "0.0.0-main-
|
|
23
|
+
"relay-runtime": "0.0.0-main-d112a76d"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^16.9.0 || ^17 || ^18 || ^19"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* eslint-disable no-unused-vars */
|
|
15
15
|
|
|
16
16
|
import type {JSResourceReference} from 'JSResourceReference';
|
|
17
|
-
import type {
|
|
17
|
+
import type {ElementConfig} from 'react';
|
|
18
18
|
import type {
|
|
19
19
|
CacheConfig,
|
|
20
20
|
FetchPolicy,
|
package/rsc_EXPERIMENTAL.js
CHANGED