@isograph/react 0.0.0-main-e7d6b095 → 0.0.0-main-5da1ab92

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.
@@ -66,6 +66,7 @@ export type StoreRecord = {
66
66
  [index: DataId | string]: DataTypeValue;
67
67
  readonly id?: DataId;
68
68
  };
69
+ export type TypeName = string;
69
70
  export type DataId = string;
70
71
  export declare const ROOT_ID: DataId & '__ROOT';
71
72
  export type IsographStore = {
@@ -1,3 +1,4 @@
1
+ import type { TypeName } from './IsographEnvironment';
1
2
  import { TopLevelReaderArtifact } from './reader';
2
3
  import { Arguments } from './util';
3
4
  export type ReaderWithRefetchQueries<TReadFromStore extends {
@@ -37,6 +38,7 @@ export type NormalizationLinkedField = {
37
38
  readonly fieldName: string;
38
39
  readonly arguments: Arguments | null;
39
40
  readonly selections: NormalizationAst;
41
+ readonly concreteType: TypeName | null;
40
42
  };
41
43
  export type NormalizationInlineFragment = {
42
44
  readonly kind: 'InlineFragment';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isograph/react",
3
- "version": "0.0.0-main-e7d6b095",
3
+ "version": "0.0.0-main-5da1ab92",
4
4
  "description": "Use Isograph with React",
5
5
  "homepage": "https://isograph.dev",
6
6
  "main": "dist/index.js",
@@ -17,9 +17,9 @@
17
17
  "tsc": "tsc"
18
18
  },
19
19
  "dependencies": {
20
- "@isograph/disposable-types": "0.0.0-main-e7d6b095",
21
- "@isograph/react-disposable-state": "0.0.0-main-e7d6b095",
22
- "@isograph/reference-counted-pointer": "0.0.0-main-e7d6b095"
20
+ "@isograph/disposable-types": "0.0.0-main-5da1ab92",
21
+ "@isograph/react-disposable-state": "0.0.0-main-5da1ab92",
22
+ "@isograph/reference-counted-pointer": "0.0.0-main-5da1ab92"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "18.3.1"
@@ -103,6 +103,7 @@ export type StoreRecord = {
103
103
  readonly id?: DataId;
104
104
  };
105
105
 
106
+ export type TypeName = string;
106
107
  export type DataId = string;
107
108
 
108
109
  export const ROOT_ID: DataId & '__ROOT' = '__ROOT';
@@ -1,3 +1,4 @@
1
+ import type { TypeName } from './IsographEnvironment';
1
2
  import { TopLevelReaderArtifact } from './reader';
2
3
  import { Arguments } from './util';
3
4
 
@@ -57,6 +58,7 @@ export type NormalizationLinkedField = {
57
58
  readonly fieldName: string;
58
59
  readonly arguments: Arguments | null;
59
60
  readonly selections: NormalizationAst;
61
+ readonly concreteType: TypeName | null;
60
62
  };
61
63
 
62
64
  export type NormalizationInlineFragment = {
@@ -16,6 +16,7 @@ const normalizationAst: NormalizationAst = [
16
16
  kind: "Linked",
17
17
  fieldName: "me",
18
18
  arguments: null,
19
+ concreteType: "Economist",
19
20
  selections: [
20
21
  {
21
22
  kind: "Scalar",
@@ -23,6 +23,7 @@ const normalizationAst: NormalizationAst = [
23
23
  kind: "Linked",
24
24
  fieldName: "me",
25
25
  arguments: null,
26
+ concreteType: "Economist",
26
27
  selections: [
27
28
  {
28
29
  kind: "Scalar",
@@ -38,6 +39,7 @@ const normalizationAst: NormalizationAst = [
38
39
  kind: "Linked",
39
40
  fieldName: "successor",
40
41
  arguments: null,
42
+ concreteType: "Economist",
41
43
  selections: [
42
44
  {
43
45
  kind: "Scalar",
@@ -48,6 +50,7 @@ const normalizationAst: NormalizationAst = [
48
50
  kind: "Linked",
49
51
  fieldName: "successor",
50
52
  arguments: null,
53
+ concreteType: "Economist",
51
54
  selections: [
52
55
  {
53
56
  kind: "Scalar",
@@ -21,6 +21,7 @@ const normalizationAst: NormalizationAst = [
21
21
  { kind: "Variable", name: "id" },
22
22
  ],
23
23
  ],
24
+ concreteType: null,
24
25
  selections: [
25
26
  {
26
27
  kind: "Scalar",