├── .babelrc ├── .eslintrc.js ├── .github └── workflows │ ├── main.yml │ └── size.yml ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── .lintstagedrc.js ├── .nvmrc ├── .prettierrc.json ├── LICENSE ├── README.md ├── bin ├── test └── test_alternative_for_file ├── events └── package.json ├── example ├── .gitignore ├── .npmignore ├── .nvmrc ├── index.html ├── index.tsx ├── package.json ├── tsconfig.json └── yarn.lock ├── package.json ├── react ├── XStateInspectLoader │ └── package.json ├── createReactContextHelpers │ └── package.json ├── package.json ├── useIsXStateTransitionAvailable │ └── package.json └── useStateCan │ └── package.json ├── src ├── events.ts ├── index.tsx ├── react │ ├── XStateInspectLoader.tsx │ ├── createReactContextHelpers.tsx │ ├── index.tsx │ ├── useIsXStateTransitionAvailable.ts │ └── useStateCan.ts └── types.ts ├── test ├── events.test.ts ├── jest-setup.js └── react │ ├── XStateInspectLoader.test.tsx │ ├── createReactContextHelpers.test.tsx │ ├── createReactContextHelpers.test.typegen.ts │ ├── useIsXStateTransitionAvailable.test.ts │ └── useStateCan.test.ts ├── tsconfig.json └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/.babelrc -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.github/workflows/size.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/.github/workflows/size.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | .DS_Store 3 | node_modules 4 | .cache 5 | dist 6 | -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npm run lint-staged 5 | -------------------------------------------------------------------------------- /.lintstagedrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/.lintstagedrc.js -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 14 2 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/README.md -------------------------------------------------------------------------------- /bin/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ./node_modules/.bin/jest "$@" 4 | -------------------------------------------------------------------------------- /bin/test_alternative_for_file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/bin/test_alternative_for_file -------------------------------------------------------------------------------- /events/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/events/package.json -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | .parcel-cache 2 | -------------------------------------------------------------------------------- /example/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .cache 3 | dist -------------------------------------------------------------------------------- /example/.nvmrc: -------------------------------------------------------------------------------- 1 | 14 2 | -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/example/index.html -------------------------------------------------------------------------------- /example/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/example/index.tsx -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/example/package.json -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/example/tsconfig.json -------------------------------------------------------------------------------- /example/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/example/yarn.lock -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/package.json -------------------------------------------------------------------------------- /react/XStateInspectLoader/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/react/XStateInspectLoader/package.json -------------------------------------------------------------------------------- /react/createReactContextHelpers/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/react/createReactContextHelpers/package.json -------------------------------------------------------------------------------- /react/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/react/package.json -------------------------------------------------------------------------------- /react/useIsXStateTransitionAvailable/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/react/useIsXStateTransitionAvailable/package.json -------------------------------------------------------------------------------- /react/useStateCan/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/react/useStateCan/package.json -------------------------------------------------------------------------------- /src/events.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/src/events.ts -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- 1 | export * from './events'; 2 | -------------------------------------------------------------------------------- /src/react/XStateInspectLoader.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/src/react/XStateInspectLoader.tsx -------------------------------------------------------------------------------- /src/react/createReactContextHelpers.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/src/react/createReactContextHelpers.tsx -------------------------------------------------------------------------------- /src/react/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/src/react/index.tsx -------------------------------------------------------------------------------- /src/react/useIsXStateTransitionAvailable.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/src/react/useIsXStateTransitionAvailable.ts -------------------------------------------------------------------------------- /src/react/useStateCan.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/src/react/useStateCan.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/src/types.ts -------------------------------------------------------------------------------- /test/events.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/test/events.test.ts -------------------------------------------------------------------------------- /test/jest-setup.js: -------------------------------------------------------------------------------- 1 | require('@testing-library/jest-dom'); 2 | -------------------------------------------------------------------------------- /test/react/XStateInspectLoader.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/test/react/XStateInspectLoader.test.tsx -------------------------------------------------------------------------------- /test/react/createReactContextHelpers.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/test/react/createReactContextHelpers.test.tsx -------------------------------------------------------------------------------- /test/react/createReactContextHelpers.test.typegen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/test/react/createReactContextHelpers.test.typegen.ts -------------------------------------------------------------------------------- /test/react/useIsXStateTransitionAvailable.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/test/react/useIsXStateTransitionAvailable.test.ts -------------------------------------------------------------------------------- /test/react/useStateCan.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/test/react/useStateCan.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VanTanev/xstate-helpers/HEAD/yarn.lock --------------------------------------------------------------------------------