relay-forms-nodeps 2.0.0 → 2.3.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 (64) hide show
  1. package/.vscode/settings.json +10 -0
  2. package/eslint.config.js +84 -0
  3. package/lib/RelayFormsTypes.d.ts +17 -10
  4. package/lib/Utils.d.ts +1 -1
  5. package/lib/Utils.js +4 -3
  6. package/lib/es/RelayFormsTypes.d.ts +17 -10
  7. package/lib/es/RelayFormsTypes.js +1 -0
  8. package/lib/es/Utils.d.ts +1 -1
  9. package/lib/es/index.js +3 -1
  10. package/lib/es/relay/RelayModernStore.js +1 -2
  11. package/lib/es/relay/RelayReader.js +0 -1
  12. package/lib/es/relay/RelayStoreProvider.d.ts +1 -1
  13. package/lib/es/relay/RelayTypes.d.ts +7 -7
  14. package/lib/es/relay/RelayTypes.js +1 -0
  15. package/lib/es/relay/queries.js +0 -1
  16. package/lib/es/relay/queryErrorsFieldQuery.graphql.d.ts +27 -0
  17. package/lib/es/relay/queryErrorsFieldQuery.graphql.js +101 -0
  18. package/lib/es/relay/queryFieldFragment.graphql.d.ts +17 -0
  19. package/lib/es/relay/queryFieldFragment.graphql.js +27 -0
  20. package/lib/es/relay/queryFieldQuery.graphql.d.ts +24 -0
  21. package/lib/es/relay/queryFieldQuery.graphql.js +83 -0
  22. package/lib/es/relay/queryValueFieldFragment.graphql.d.ts +19 -0
  23. package/lib/es/relay/queryValueFieldFragment.graphql.js +39 -0
  24. package/lib/es/useForm.js +6 -2
  25. package/lib/es/useFormField.d.ts +1 -1
  26. package/lib/es/useFormField.js +48 -10
  27. package/lib/es/useFormState.d.ts +2 -12
  28. package/lib/index.js +70 -8
  29. package/lib/relay/RelayModernRecord.js +2 -1
  30. package/lib/relay/RelayModernSelector.js +1 -0
  31. package/lib/relay/RelayModernStore.js +7 -7
  32. package/lib/relay/RelayReader.js +1 -1
  33. package/lib/relay/RelayRecordProxy.js +1 -0
  34. package/lib/relay/RelayRecordSource.js +1 -0
  35. package/lib/relay/RelayRecordSourceMutator.js +1 -0
  36. package/lib/relay/RelayRecordSourceProxy.js +1 -0
  37. package/lib/relay/RelayReferenceMarker.js +1 -0
  38. package/lib/relay/RelayStoreProvider.d.ts +1 -1
  39. package/lib/relay/RelayStoreProvider.js +3 -1
  40. package/lib/relay/RelayStoreUtils.js +1 -0
  41. package/lib/relay/RelayTypes.d.ts +7 -7
  42. package/lib/relay/queries.js +1 -1
  43. package/lib/relay/queryErrorsFieldQuery.graphql.d.ts +27 -0
  44. package/lib/relay/queryErrorsFieldQuery.graphql.js +106 -0
  45. package/lib/relay/queryFieldFragment.graphql.d.ts +17 -0
  46. package/lib/relay/queryFieldFragment.graphql.js +32 -0
  47. package/lib/relay/queryFieldQuery.graphql.d.ts +24 -0
  48. package/lib/relay/queryFieldQuery.graphql.js +88 -0
  49. package/lib/relay/queryValueFieldFragment.graphql.d.ts +19 -0
  50. package/lib/relay/queryValueFieldFragment.graphql.js +44 -0
  51. package/lib/umd/relay-forms-nodeps.js +136 -69
  52. package/lib/umd/relay-forms-nodeps.js.map +1 -1
  53. package/lib/umd/relay-forms-nodeps.min.js +1 -1
  54. package/lib/umd/relay-forms-nodeps.min.js.map +1 -1
  55. package/lib/useForceUpdate.js +2 -1
  56. package/lib/useForm.js +17 -11
  57. package/lib/useFormField.d.ts +1 -1
  58. package/lib/useFormField.js +56 -17
  59. package/lib/useFormState.d.ts +2 -12
  60. package/lib/useFormState.js +5 -3
  61. package/lib/useFormValue.js +3 -2
  62. package/package.json +106 -102
  63. package/rollup.config.js +92 -92
  64. package/yarn-error.log +127 -127
@@ -0,0 +1,10 @@
1
+ {
2
+ "prettier.requireConfig": true,
3
+ "prettier.prettierPath": "./node_modules/prettier/index.cjs",
4
+ "[typescript]": {
5
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
6
+ },
7
+ "[typescriptreact]": {
8
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
9
+ }
10
+ }
@@ -0,0 +1,84 @@
1
+ const js = require('@eslint/js');
2
+ const tsParser = require('@typescript-eslint/parser');
3
+ const tsPlugin = require('@typescript-eslint/eslint-plugin');
4
+ const importPlugin = require('eslint-plugin-import');
5
+ const prettierPlugin = require('eslint-plugin-prettier');
6
+ const reactPlugin = require('eslint-plugin-react');
7
+ const reactHooksPlugin = require('eslint-plugin-react-hooks');
8
+ const prettierConfig = require('eslint-config-prettier');
9
+
10
+ module.exports = [
11
+ js.configs.recommended,
12
+ prettierConfig,
13
+ {
14
+ files: ['src/**/*.{js,jsx,ts,tsx}'],
15
+ languageOptions: {
16
+ ecmaVersion: 2018,
17
+ sourceType: 'module',
18
+ parser: tsParser,
19
+ parserOptions: {
20
+ ecmaFeatures: {
21
+ jsx: true,
22
+ },
23
+ },
24
+ },
25
+ plugins: {
26
+ '@typescript-eslint': tsPlugin,
27
+ import: importPlugin,
28
+ prettier: prettierPlugin,
29
+ react: reactPlugin,
30
+ 'react-hooks': reactHooksPlugin,
31
+ },
32
+ settings: {
33
+ 'import/parsers': {
34
+ '@typescript-eslint/parser': ['.ts', '.tsx'],
35
+ },
36
+ 'import/resolver': {
37
+ typescript: {},
38
+ },
39
+ },
40
+ rules: {
41
+ ...tsPlugin.configs.recommended.rules,
42
+ ...reactHooksPlugin.configs.recommended.rules,
43
+ 'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
44
+ 'import/no-extraneous-dependencies': [
45
+ 2,
46
+ { devDependencies: ['**/test.tsx', '**/test.ts'] },
47
+ ],
48
+ 'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
49
+ 'max-len': [
50
+ 2,
51
+ {
52
+ code: 100,
53
+ ignorePattern: '^import [^,]+ from |^export | implements',
54
+ },
55
+ ],
56
+ 'no-duplicate-imports': ['error'],
57
+ 'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
58
+ 'no-unused-vars': 'off',
59
+ 'no-undef': 'off',
60
+ 'object-curly-newline': ['error', { consistent: true }],
61
+ semi: [2, 'always'],
62
+ 'space-before-function-paren': [
63
+ 'error',
64
+ { anonymous: 'never', named: 'never', asyncArrow: 'ignore' },
65
+ ],
66
+ '@typescript-eslint/no-empty-function': ['error', { allow: ['arrowFunctions'] }],
67
+ '@typescript-eslint/no-explicit-any': [0],
68
+ '@typescript-eslint/no-unused-vars': [2, { argsIgnorePattern: '^_' }],
69
+ '@typescript-eslint/no-use-before-define': [0],
70
+ 'import/no-default-export': ['error'],
71
+ 'import/order': [
72
+ 'error',
73
+ {
74
+ groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
75
+ alphabetize: {
76
+ order: 'asc',
77
+ caseInsensitive: true,
78
+ },
79
+ },
80
+ ],
81
+ 'prettier/prettier': 'error',
82
+ },
83
+ },
84
+ ];
@@ -1,32 +1,39 @@
1
1
  /// <reference types="react" />
2
- export declare type FunctionOnSubmit<ValueType> = (values: ValueType) => Promise<void> | void;
3
- export declare type FormSubmitOptions<ValueType> = {
2
+ export type FunctionOnSubmit<ValueType> = (values: ValueType) => Promise<void> | void;
3
+ export type FormSubmitOptions<ValueType> = {
4
4
  onSubmit: FunctionOnSubmit<ValueType>;
5
5
  };
6
- export declare type FormSubmitReturn = {
6
+ export type FormSubmitReturn = {
7
7
  submit: (event?: React.BaseSyntheticEvent<any, any, any>) => void;
8
8
  validate: () => void;
9
9
  reset: () => void;
10
10
  };
11
- export declare type FormSetValueOptions<ValueType> = {
11
+ export type ValidateFunction<ValueType> = (value: ValueType, deps?: {
12
+ [key: string]: FormValueStateReturn<any>;
13
+ }) => Promise<string | undefined> | string | undefined;
14
+ export type FormSetValueOptions<ValueType> = {
12
15
  key: string;
13
16
  initialValue?: ValueType;
14
- validate?: (value: ValueType) => Promise<string | undefined> | string | undefined;
17
+ validate?: ValidateFunction<ValueType>;
15
18
  validateOnChange?: boolean;
16
19
  label?: string;
20
+ dependsOn?: ReadonlyArray<string> | null | undefined;
17
21
  };
18
- export declare type FormSetValueStateReturn<ValueType> = {
22
+ export type FormSetValueStateReturn<ValueType> = {
19
23
  error: undefined | null | Error;
20
24
  value?: ValueType;
21
25
  };
22
- export declare type FormValueStateReturn<ValueType> = {
26
+ export type FormValueStateReturn<ValueType> = {
23
27
  readonly id: string;
24
28
  readonly value: ValueType | null;
25
29
  readonly error: string | null;
26
30
  };
27
- export declare type FormSetValueFunctionReturn<ValueType> = (newValue: ValueType) => void;
28
- export declare type FormSetValueReturn<ValueType> = [FormSetValueStateReturn<ValueType>, FormSetValueFunctionReturn<ValueType>];
29
- export declare type FormStateReturn = {
31
+ export type FormSetValueFunctionReturn<ValueType> = (newValue: ValueType) => void;
32
+ export type FormSetValueReturn<ValueType> = [
33
+ FormSetValueStateReturn<ValueType>,
34
+ FormSetValueFunctionReturn<ValueType>
35
+ ];
36
+ export type FormStateReturn = {
30
37
  errors: ReadonlyArray<{
31
38
  readonly id: string;
32
39
  readonly key: string;
package/lib/Utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { RecordProxy, RecordSourceProxy, Snapshot, Store } from './relay/RelayTypes';
2
- declare type FormStoreUpdater = (store: RecordSourceProxy, form: RecordProxy) => void;
2
+ type FormStoreUpdater = (store: RecordSourceProxy, form: RecordProxy) => void;
3
3
  export declare function getFieldId(key: any): string;
4
4
  export declare function getSnapshot(environment: Store, fragment: any, key: string): Snapshot;
5
5
  export declare function commit(environment: Store, updater: FormStoreUpdater): void;
package/lib/Utils.js CHANGED
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.operationQueryErrorsForm = exports.operationQueryForm = exports.commit = exports.getSnapshot = exports.getFieldId = void 0;
6
7
  var queries_1 = require("./relay/queries");
7
8
  var RelayModernSelector_1 = require("./relay/RelayModernSelector");
8
9
  var PREFIX_LOCAL_FORM = 'local:form';
@@ -14,7 +15,7 @@ function getSnapshot(environment, fragment, key) {
14
15
  var item = {
15
16
  __id: getFieldId(key)
16
17
  };
17
- return environment.lookup(RelayModernSelector_1.getSingularSelector(fragment, item));
18
+ return environment.lookup((0, RelayModernSelector_1.getSingularSelector)(fragment, item));
18
19
  }
19
20
  exports.getSnapshot = getSnapshot;
20
21
  function commit(environment, updater) {
@@ -28,5 +29,5 @@ function commit(environment, updater) {
28
29
  });
29
30
  }
30
31
  exports.commit = commit;
31
- exports.operationQueryForm = RelayModernSelector_1.createOperationDescriptor(queries_1.QueryFields);
32
- exports.operationQueryErrorsForm = RelayModernSelector_1.createOperationDescriptor(queries_1.QueryErrors);
32
+ exports.operationQueryForm = (0, RelayModernSelector_1.createOperationDescriptor)(queries_1.QueryFields);
33
+ exports.operationQueryErrorsForm = (0, RelayModernSelector_1.createOperationDescriptor)(queries_1.QueryErrors);
@@ -1,32 +1,39 @@
1
1
  /// <reference types="react" />
2
- export declare type FunctionOnSubmit<ValueType> = (values: ValueType) => Promise<void> | void;
3
- export declare type FormSubmitOptions<ValueType> = {
2
+ export type FunctionOnSubmit<ValueType> = (values: ValueType) => Promise<void> | void;
3
+ export type FormSubmitOptions<ValueType> = {
4
4
  onSubmit: FunctionOnSubmit<ValueType>;
5
5
  };
6
- export declare type FormSubmitReturn = {
6
+ export type FormSubmitReturn = {
7
7
  submit: (event?: React.BaseSyntheticEvent<any, any, any>) => void;
8
8
  validate: () => void;
9
9
  reset: () => void;
10
10
  };
11
- export declare type FormSetValueOptions<ValueType> = {
11
+ export type ValidateFunction<ValueType> = (value: ValueType, deps?: {
12
+ [key: string]: FormValueStateReturn<any>;
13
+ }) => Promise<string | undefined> | string | undefined;
14
+ export type FormSetValueOptions<ValueType> = {
12
15
  key: string;
13
16
  initialValue?: ValueType;
14
- validate?: (value: ValueType) => Promise<string | undefined> | string | undefined;
17
+ validate?: ValidateFunction<ValueType>;
15
18
  validateOnChange?: boolean;
16
19
  label?: string;
20
+ dependsOn?: ReadonlyArray<string> | null | undefined;
17
21
  };
18
- export declare type FormSetValueStateReturn<ValueType> = {
22
+ export type FormSetValueStateReturn<ValueType> = {
19
23
  error: undefined | null | Error;
20
24
  value?: ValueType;
21
25
  };
22
- export declare type FormValueStateReturn<ValueType> = {
26
+ export type FormValueStateReturn<ValueType> = {
23
27
  readonly id: string;
24
28
  readonly value: ValueType | null;
25
29
  readonly error: string | null;
26
30
  };
27
- export declare type FormSetValueFunctionReturn<ValueType> = (newValue: ValueType) => void;
28
- export declare type FormSetValueReturn<ValueType> = [FormSetValueStateReturn<ValueType>, FormSetValueFunctionReturn<ValueType>];
29
- export declare type FormStateReturn = {
31
+ export type FormSetValueFunctionReturn<ValueType> = (newValue: ValueType) => void;
32
+ export type FormSetValueReturn<ValueType> = [
33
+ FormSetValueStateReturn<ValueType>,
34
+ FormSetValueFunctionReturn<ValueType>
35
+ ];
36
+ export type FormStateReturn = {
30
37
  errors: ReadonlyArray<{
31
38
  readonly id: string;
32
39
  readonly key: string;
@@ -0,0 +1 @@
1
+ export {};
package/lib/es/Utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { RecordProxy, RecordSourceProxy, Snapshot, Store } from './relay/RelayTypes';
2
- declare type FormStoreUpdater = (store: RecordSourceProxy, form: RecordProxy) => void;
2
+ type FormStoreUpdater = (store: RecordSourceProxy, form: RecordProxy) => void;
3
3
  export declare function getFieldId(key: any): string;
4
4
  export declare function getSnapshot(environment: Store, fragment: any, key: string): Snapshot;
5
5
  export declare function commit(environment: Store, updater: FormStoreUpdater): void;
package/lib/es/index.js CHANGED
@@ -4,4 +4,6 @@ export { useFormField } from './useFormField';
4
4
  export { useFormValue } from './useFormValue';
5
5
  export { StoreProvider } from './relay/RelayStoreProvider';
6
6
  export { RelayModernStore as Store, createStore } from './relay/RelayModernStore';
7
- export { RelayRecordSource as RecordSource } from './relay/RelayRecordSource';
7
+ export { RelayRecordSource as RecordSource } from './relay/RelayRecordSource';
8
+ export * from './RelayFormsTypes';
9
+ export * from './relay/RelayTypes';
@@ -39,7 +39,7 @@ var __generator = this && this.__generator || function (thisArg, body) {
39
39
  }
40
40
  function step(op) {
41
41
  if (f) throw new TypeError("Generator is already executing.");
42
- while (_) try {
42
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
43
43
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
44
44
  if (y = 0, t) op = [op[0] & 2, t.value];
45
45
  switch (op[0]) {
@@ -309,7 +309,6 @@ var RelayModernStore = /** @class */function () {
309
309
  }
310
310
  });
311
311
  };
312
-
313
312
  return RelayModernStore;
314
313
  }();
315
314
  export { RelayModernStore };
@@ -74,7 +74,6 @@ var RelayReader = /** @class */function () {
74
74
  value = RelayModernRecord.getValue(record, name_1);
75
75
  //this._readScalar(selection, record, data);
76
76
  }
77
-
78
77
  data[name_1] = value;
79
78
  };
80
79
  var this_1 = this;
@@ -3,5 +3,5 @@ import { Store } from './RelayTypes';
3
3
  export declare const StoreProvider: <TStore extends Store = Store>(props: {
4
4
  children: React.ReactNode;
5
5
  store: TStore;
6
- }) => JSX.Element;
6
+ }) => React.JSX.Element;
7
7
  export declare function useStore<TStore extends Store = Store>(): TStore;
@@ -1,5 +1,5 @@
1
1
  import { RelayRecordState } from './RelayStoreUtils';
2
- export declare type Disposable = {
2
+ export type Disposable = {
3
3
  dispose(): void;
4
4
  };
5
5
  export interface RecordProxy {
@@ -16,14 +16,14 @@ export interface RecordSourceProxy {
16
16
  get(string: string): RecordProxy | null | undefined;
17
17
  getRoot(): RecordProxy;
18
18
  }
19
- export declare type StoreUpdater = (store: RecordSourceProxy) => void;
20
- export declare type Record = {
19
+ export type StoreUpdater = (store: RecordSourceProxy) => void;
20
+ export type Record = {
21
21
  [key: string]: any;
22
22
  };
23
- export declare type SelectorData = {
23
+ export type SelectorData = {
24
24
  [key: string]: any;
25
25
  };
26
- export declare type RecordState = keyof typeof RelayRecordState;
26
+ export type RecordState = keyof typeof RelayRecordState;
27
27
  export interface RecordSource {
28
28
  get(dataID: string): Record | null | undefined;
29
29
  getRecordIDs(): Array<string>;
@@ -34,12 +34,12 @@ export interface RecordSource {
34
34
  [key: string]: Record | null | undefined;
35
35
  };
36
36
  }
37
- export declare type Snapshot = {
37
+ export type Snapshot = {
38
38
  data: SelectorData | null | undefined;
39
39
  seenRecords: Set<string>;
40
40
  selector: any;
41
41
  };
42
- export declare type OperationDescriptor = {
42
+ export type OperationDescriptor = {
43
43
  fragment: any;
44
44
  request: any;
45
45
  root: any;
@@ -0,0 +1 @@
1
+ export {};
@@ -40,7 +40,6 @@ export var QueryErrors = {
40
40
  }] /*: any*/
41
41
  }
42
42
  };
43
-
44
43
  export var QueryFields = {
45
44
  id: '0',
46
45
  fragment: {
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @generated SignedSource<<c006e1b0c17510c704075849dda72ba6>>
3
+ * @relayHash 1e729a4dd469bbcedf1c07919286ff70
4
+ * @lightSyntaxTransform
5
+ */
6
+ import { ConcreteRequest } from 'relay-runtime';
7
+ export type queryErrorsFieldQuery$variables = Record<PropertyKey, never>;
8
+ export type queryErrorsFieldQuery$data = {
9
+ readonly form: {
10
+ readonly errors: ReadonlyArray<{
11
+ readonly check: number | null | undefined;
12
+ readonly error: string | null | undefined;
13
+ readonly id: string;
14
+ readonly key: string;
15
+ readonly label: string | null | undefined;
16
+ } | null | undefined> | null | undefined;
17
+ readonly isSubmitting: boolean | null | undefined;
18
+ readonly isValid: boolean | null | undefined;
19
+ readonly isValidating: boolean | null | undefined;
20
+ } | null | undefined;
21
+ };
22
+ export type queryErrorsFieldQuery = {
23
+ response: queryErrorsFieldQuery$data;
24
+ variables: queryErrorsFieldQuery$variables;
25
+ };
26
+ declare const node: ConcreteRequest;
27
+ export default node;
@@ -0,0 +1,101 @@
1
+ /**
2
+ * @generated SignedSource<<c006e1b0c17510c704075849dda72ba6>>
3
+ * @relayHash 1e729a4dd469bbcedf1c07919286ff70
4
+ * @lightSyntaxTransform
5
+ */
6
+ var node = function () {
7
+ var v0 = [{
8
+ "alias": null,
9
+ "args": null,
10
+ "concreteType": "EntryForm",
11
+ "kind": "LinkedField",
12
+ "name": "form",
13
+ "plural": false,
14
+ "selections": [{
15
+ "alias": null,
16
+ "args": null,
17
+ "kind": "ScalarField",
18
+ "name": "isSubmitting",
19
+ "storageKey": null
20
+ }, {
21
+ "alias": null,
22
+ "args": null,
23
+ "kind": "ScalarField",
24
+ "name": "isValidating",
25
+ "storageKey": null
26
+ }, {
27
+ "alias": null,
28
+ "args": null,
29
+ "kind": "ScalarField",
30
+ "name": "isValid",
31
+ "storageKey": null
32
+ }, {
33
+ "alias": null,
34
+ "args": null,
35
+ "concreteType": "Entry",
36
+ "kind": "LinkedField",
37
+ "name": "errors",
38
+ "plural": true,
39
+ "selections": [{
40
+ "alias": null,
41
+ "args": null,
42
+ "kind": "ScalarField",
43
+ "name": "id",
44
+ "storageKey": null
45
+ }, {
46
+ "alias": null,
47
+ "args": null,
48
+ "kind": "ScalarField",
49
+ "name": "key",
50
+ "storageKey": null
51
+ }, {
52
+ "alias": null,
53
+ "args": null,
54
+ "kind": "ScalarField",
55
+ "name": "error",
56
+ "storageKey": null
57
+ }, {
58
+ "alias": null,
59
+ "args": null,
60
+ "kind": "ScalarField",
61
+ "name": "check",
62
+ "storageKey": null
63
+ }, {
64
+ "alias": null,
65
+ "args": null,
66
+ "kind": "ScalarField",
67
+ "name": "label",
68
+ "storageKey": null
69
+ }],
70
+ "storageKey": null
71
+ }],
72
+ "storageKey": null
73
+ }];
74
+ return {
75
+ "fragment": {
76
+ "argumentDefinitions": [],
77
+ "kind": "Fragment",
78
+ "metadata": null,
79
+ "name": "queryErrorsFieldQuery",
80
+ "selections": v0 /*:: as any*/,
81
+ "type": "Query",
82
+ "abstractKey": null
83
+ },
84
+ "kind": "Request",
85
+ "operation": {
86
+ "argumentDefinitions": [],
87
+ "kind": "Operation",
88
+ "name": "queryErrorsFieldQuery",
89
+ "selections": v0 /*:: as any*/
90
+ },
91
+ "params": {
92
+ "id": "1e729a4dd469bbcedf1c07919286ff70",
93
+ "metadata": {},
94
+ "name": "queryErrorsFieldQuery",
95
+ "operationKind": "query",
96
+ "text": null
97
+ }
98
+ };
99
+ }();
100
+ node.hash = "10e337eb009f23b0bbee954d56b68b89";
101
+ export default node;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @generated SignedSource<<f339f7f54e87337ad69e9fc4490d6f4e>>
3
+ * @lightSyntaxTransform
4
+ */
5
+ import { ReaderFragment } from 'relay-runtime';
6
+ import { FragmentRefs } from "relay-runtime";
7
+ export type queryFieldFragment$data = {
8
+ readonly check: number | null | undefined;
9
+ readonly id: string;
10
+ readonly " $fragmentType": "queryFieldFragment";
11
+ };
12
+ export type queryFieldFragment$key = {
13
+ readonly " $data"?: queryFieldFragment$data;
14
+ readonly " $fragmentSpreads": FragmentRefs<"queryFieldFragment">;
15
+ };
16
+ declare const node: ReaderFragment;
17
+ export default node;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @generated SignedSource<<f339f7f54e87337ad69e9fc4490d6f4e>>
3
+ * @lightSyntaxTransform
4
+ */
5
+ var node = {
6
+ "argumentDefinitions": [],
7
+ "kind": "Fragment",
8
+ "metadata": null,
9
+ "name": "queryFieldFragment",
10
+ "selections": [{
11
+ "alias": null,
12
+ "args": null,
13
+ "kind": "ScalarField",
14
+ "name": "id",
15
+ "storageKey": null
16
+ }, {
17
+ "alias": null,
18
+ "args": null,
19
+ "kind": "ScalarField",
20
+ "name": "check",
21
+ "storageKey": null
22
+ }],
23
+ "type": "Entry",
24
+ "abstractKey": null
25
+ };
26
+ node.hash = "d5b0953bdeb412925ee13444a6be6082";
27
+ export default node;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @generated SignedSource<<1263d9ecd9ad411904cb6c36855bf582>>
3
+ * @relayHash 0b493a6f66e132f2693f91a5da941414
4
+ * @lightSyntaxTransform
5
+ */
6
+ import { ConcreteRequest } from 'relay-runtime';
7
+ export type queryFieldQuery$variables = Record<PropertyKey, never>;
8
+ export type queryFieldQuery$data = {
9
+ readonly form: {
10
+ readonly entries: ReadonlyArray<{
11
+ readonly check: number | null | undefined;
12
+ readonly error: string | null | undefined;
13
+ readonly id: string;
14
+ readonly key: string;
15
+ readonly value: string | null | undefined;
16
+ } | null | undefined> | null | undefined;
17
+ } | null | undefined;
18
+ };
19
+ export type queryFieldQuery = {
20
+ response: queryFieldQuery$data;
21
+ variables: queryFieldQuery$variables;
22
+ };
23
+ declare const node: ConcreteRequest;
24
+ export default node;
@@ -0,0 +1,83 @@
1
+ /**
2
+ * @generated SignedSource<<1263d9ecd9ad411904cb6c36855bf582>>
3
+ * @relayHash 0b493a6f66e132f2693f91a5da941414
4
+ * @lightSyntaxTransform
5
+ */
6
+ var node = function () {
7
+ var v0 = [{
8
+ "alias": null,
9
+ "args": null,
10
+ "concreteType": "EntryForm",
11
+ "kind": "LinkedField",
12
+ "name": "form",
13
+ "plural": false,
14
+ "selections": [{
15
+ "alias": null,
16
+ "args": null,
17
+ "concreteType": "Entry",
18
+ "kind": "LinkedField",
19
+ "name": "entries",
20
+ "plural": true,
21
+ "selections": [{
22
+ "alias": null,
23
+ "args": null,
24
+ "kind": "ScalarField",
25
+ "name": "id",
26
+ "storageKey": null
27
+ }, {
28
+ "alias": null,
29
+ "args": null,
30
+ "kind": "ScalarField",
31
+ "name": "key",
32
+ "storageKey": null
33
+ }, {
34
+ "alias": null,
35
+ "args": null,
36
+ "kind": "ScalarField",
37
+ "name": "value",
38
+ "storageKey": null
39
+ }, {
40
+ "alias": null,
41
+ "args": null,
42
+ "kind": "ScalarField",
43
+ "name": "check",
44
+ "storageKey": null
45
+ }, {
46
+ "alias": null,
47
+ "args": null,
48
+ "kind": "ScalarField",
49
+ "name": "error",
50
+ "storageKey": null
51
+ }],
52
+ "storageKey": null
53
+ }],
54
+ "storageKey": null
55
+ }];
56
+ return {
57
+ "fragment": {
58
+ "argumentDefinitions": [],
59
+ "kind": "Fragment",
60
+ "metadata": null,
61
+ "name": "queryFieldQuery",
62
+ "selections": v0 /*:: as any*/,
63
+ "type": "Query",
64
+ "abstractKey": null
65
+ },
66
+ "kind": "Request",
67
+ "operation": {
68
+ "argumentDefinitions": [],
69
+ "kind": "Operation",
70
+ "name": "queryFieldQuery",
71
+ "selections": v0 /*:: as any*/
72
+ },
73
+ "params": {
74
+ "id": "0b493a6f66e132f2693f91a5da941414",
75
+ "metadata": {},
76
+ "name": "queryFieldQuery",
77
+ "operationKind": "query",
78
+ "text": null
79
+ }
80
+ };
81
+ }();
82
+ node.hash = "f9fd20a80a839dfb51206c305cbb1657";
83
+ export default node;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @generated SignedSource<<69ff99d34e27e6719e62c7c4258f81e8>>
3
+ * @lightSyntaxTransform
4
+ */
5
+ import { ReaderFragment } from 'relay-runtime';
6
+ import { FragmentRefs } from "relay-runtime";
7
+ export type queryValueFieldFragment$data = {
8
+ readonly error: string | null | undefined;
9
+ readonly id: string;
10
+ readonly label: string | null | undefined;
11
+ readonly value: string | null | undefined;
12
+ readonly " $fragmentType": "queryValueFieldFragment";
13
+ };
14
+ export type queryValueFieldFragment$key = {
15
+ readonly " $data"?: queryValueFieldFragment$data;
16
+ readonly " $fragmentSpreads": FragmentRefs<"queryValueFieldFragment">;
17
+ };
18
+ declare const node: ReaderFragment;
19
+ export default node;