├── .all-contributorsrc ├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .github └── workflows │ ├── release.yaml │ └── test.yaml ├── .gitignore ├── .prettierrc ├── .travis.yml ├── README.md ├── example ├── .eslintrc ├── .prettierrc ├── README.md ├── package.json ├── public │ ├── favicon.ico │ ├── index.html │ └── manifest.json ├── src │ ├── App.js │ ├── components │ │ ├── CheckboxGridInput.js │ │ ├── CheckboxInput.js │ │ ├── DropdownInput.js │ │ ├── LinearGrid.js │ │ ├── LongAnswerInput.js │ │ ├── RadioGridInput.js │ │ ├── RadioInput.js │ │ └── ShortAnswerInput.js │ ├── index.css │ ├── index.jsx │ ├── react-app-env.d.ts │ └── scripts │ │ ├── form.json │ │ └── getGoogleForm.js ├── tsconfig.json └── yarn.lock ├── package.json ├── src ├── .eslintrc ├── __mocks__ │ └── isomorphic-unfetch │ │ └── index.ts ├── hooks │ ├── __tests__ │ │ ├── examples │ │ │ └── form1.json │ │ ├── helpers │ │ │ └── utils.tsx │ │ ├── useDropdownInput.spec.tsx │ │ ├── useGoogleForm.spec.tsx │ │ ├── useGoogleFormContext.spec.tsx │ │ ├── useLinearInput.spec.tsx │ │ └── utils │ │ │ ├── getFieldFromContext.spec.tsx │ │ │ ├── useCustomOptionField.spec.tsx │ │ │ ├── useGridInput.spec.tsx │ │ │ └── useTextInput.spec.tsx │ ├── index.ts │ ├── useCheckboxGridInput.ts │ ├── useCheckboxInput.ts │ ├── useDropdownInput.ts │ ├── useGoogleForm.ts │ ├── useGoogleFormContext.tsx │ ├── useLinearInput.ts │ ├── useLongAnswerInput.ts │ ├── useRadioGridInput.ts │ ├── useRadioInput.ts │ ├── useShortAnswerInput.ts │ └── utils │ │ ├── getFieldFromContext.ts │ │ ├── useCustomOptionField.ts │ │ ├── useGridInput.ts │ │ └── useTextInput.ts ├── index.ts ├── scripts │ ├── __mocks__ │ │ ├── mockParsedSpecialCharacterForm.ts │ │ └── mockedParsedForm.ts │ ├── __tests__ │ │ ├── examples │ │ │ ├── form1.html │ │ │ ├── incorrectForm.html │ │ │ └── specialCharactersForm.html │ │ ├── googleFormsToJson.spec.ts │ │ └── submitToGoogleForms.spec.ts │ ├── googleFormsToJson.ts │ └── submitToGoogleForms.ts ├── setupTests.ts └── types │ ├── form.ts │ ├── hooks.ts │ └── index.ts ├── tsconfig.json ├── tsconfig.test.json └── yarn.lock /.all-contributorsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/.all-contributorsrc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | build/ 2 | dist/ 3 | node_modules/ 4 | .snapshots/ 5 | *.min.js -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.github/workflows/test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/.github/workflows/test.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/.prettierrc -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/.travis.yml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/README.md -------------------------------------------------------------------------------- /example/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/.eslintrc -------------------------------------------------------------------------------- /example/.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/.prettierrc -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/README.md -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/package.json -------------------------------------------------------------------------------- /example/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/public/favicon.ico -------------------------------------------------------------------------------- /example/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/public/index.html -------------------------------------------------------------------------------- /example/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/public/manifest.json -------------------------------------------------------------------------------- /example/src/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/src/App.js -------------------------------------------------------------------------------- /example/src/components/CheckboxGridInput.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/src/components/CheckboxGridInput.js -------------------------------------------------------------------------------- /example/src/components/CheckboxInput.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/src/components/CheckboxInput.js -------------------------------------------------------------------------------- /example/src/components/DropdownInput.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/src/components/DropdownInput.js -------------------------------------------------------------------------------- /example/src/components/LinearGrid.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/src/components/LinearGrid.js -------------------------------------------------------------------------------- /example/src/components/LongAnswerInput.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/src/components/LongAnswerInput.js -------------------------------------------------------------------------------- /example/src/components/RadioGridInput.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/src/components/RadioGridInput.js -------------------------------------------------------------------------------- /example/src/components/RadioInput.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/src/components/RadioInput.js -------------------------------------------------------------------------------- /example/src/components/ShortAnswerInput.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/src/components/ShortAnswerInput.js -------------------------------------------------------------------------------- /example/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/src/index.css -------------------------------------------------------------------------------- /example/src/index.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/src/index.jsx -------------------------------------------------------------------------------- /example/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /example/src/scripts/form.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/src/scripts/form.json -------------------------------------------------------------------------------- /example/src/scripts/getGoogleForm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/src/scripts/getGoogleForm.js -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/tsconfig.json -------------------------------------------------------------------------------- /example/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/example/yarn.lock -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/package.json -------------------------------------------------------------------------------- /src/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/.eslintrc -------------------------------------------------------------------------------- /src/__mocks__/isomorphic-unfetch/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/__mocks__/isomorphic-unfetch/index.ts -------------------------------------------------------------------------------- /src/hooks/__tests__/examples/form1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/__tests__/examples/form1.json -------------------------------------------------------------------------------- /src/hooks/__tests__/helpers/utils.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/__tests__/helpers/utils.tsx -------------------------------------------------------------------------------- /src/hooks/__tests__/useDropdownInput.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/__tests__/useDropdownInput.spec.tsx -------------------------------------------------------------------------------- /src/hooks/__tests__/useGoogleForm.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/__tests__/useGoogleForm.spec.tsx -------------------------------------------------------------------------------- /src/hooks/__tests__/useGoogleFormContext.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/__tests__/useGoogleFormContext.spec.tsx -------------------------------------------------------------------------------- /src/hooks/__tests__/useLinearInput.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/__tests__/useLinearInput.spec.tsx -------------------------------------------------------------------------------- /src/hooks/__tests__/utils/getFieldFromContext.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/__tests__/utils/getFieldFromContext.spec.tsx -------------------------------------------------------------------------------- /src/hooks/__tests__/utils/useCustomOptionField.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/__tests__/utils/useCustomOptionField.spec.tsx -------------------------------------------------------------------------------- /src/hooks/__tests__/utils/useGridInput.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/__tests__/utils/useGridInput.spec.tsx -------------------------------------------------------------------------------- /src/hooks/__tests__/utils/useTextInput.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/__tests__/utils/useTextInput.spec.tsx -------------------------------------------------------------------------------- /src/hooks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/index.ts -------------------------------------------------------------------------------- /src/hooks/useCheckboxGridInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/useCheckboxGridInput.ts -------------------------------------------------------------------------------- /src/hooks/useCheckboxInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/useCheckboxInput.ts -------------------------------------------------------------------------------- /src/hooks/useDropdownInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/useDropdownInput.ts -------------------------------------------------------------------------------- /src/hooks/useGoogleForm.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/useGoogleForm.ts -------------------------------------------------------------------------------- /src/hooks/useGoogleFormContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/useGoogleFormContext.tsx -------------------------------------------------------------------------------- /src/hooks/useLinearInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/useLinearInput.ts -------------------------------------------------------------------------------- /src/hooks/useLongAnswerInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/useLongAnswerInput.ts -------------------------------------------------------------------------------- /src/hooks/useRadioGridInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/useRadioGridInput.ts -------------------------------------------------------------------------------- /src/hooks/useRadioInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/useRadioInput.ts -------------------------------------------------------------------------------- /src/hooks/useShortAnswerInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/useShortAnswerInput.ts -------------------------------------------------------------------------------- /src/hooks/utils/getFieldFromContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/utils/getFieldFromContext.ts -------------------------------------------------------------------------------- /src/hooks/utils/useCustomOptionField.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/utils/useCustomOptionField.ts -------------------------------------------------------------------------------- /src/hooks/utils/useGridInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/utils/useGridInput.ts -------------------------------------------------------------------------------- /src/hooks/utils/useTextInput.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/hooks/utils/useTextInput.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/scripts/__mocks__/mockParsedSpecialCharacterForm.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/scripts/__mocks__/mockParsedSpecialCharacterForm.ts -------------------------------------------------------------------------------- /src/scripts/__mocks__/mockedParsedForm.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/scripts/__mocks__/mockedParsedForm.ts -------------------------------------------------------------------------------- /src/scripts/__tests__/examples/form1.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/scripts/__tests__/examples/form1.html -------------------------------------------------------------------------------- /src/scripts/__tests__/examples/incorrectForm.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/scripts/__tests__/examples/incorrectForm.html -------------------------------------------------------------------------------- /src/scripts/__tests__/examples/specialCharactersForm.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/scripts/__tests__/examples/specialCharactersForm.html -------------------------------------------------------------------------------- /src/scripts/__tests__/googleFormsToJson.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/scripts/__tests__/googleFormsToJson.spec.ts -------------------------------------------------------------------------------- /src/scripts/__tests__/submitToGoogleForms.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/scripts/__tests__/submitToGoogleForms.spec.ts -------------------------------------------------------------------------------- /src/scripts/googleFormsToJson.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/scripts/googleFormsToJson.ts -------------------------------------------------------------------------------- /src/scripts/submitToGoogleForms.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/scripts/submitToGoogleForms.ts -------------------------------------------------------------------------------- /src/setupTests.ts: -------------------------------------------------------------------------------- 1 | import '@testing-library/jest-dom' 2 | -------------------------------------------------------------------------------- /src/types/form.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/types/form.ts -------------------------------------------------------------------------------- /src/types/hooks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/types/hooks.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/tsconfig.test.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/francisconeves97/react-google-forms-hooks/HEAD/yarn.lock --------------------------------------------------------------------------------