Skip to content

Commit

Permalink
BZ-12559: feat: added Zephyr Checkout Component
Browse files Browse the repository at this point in the history
- added Zephyr functional react component to allow users initiate checkout
- added basic configuration params, styling params, event handlers & callbacks
- added typings for all interfaces exposed and documentation for the same
- removed rollup for bundling, & used vanilla typescript build for building
- added react-native jsx option to tsconfig.json
  • Loading branch information
sinha-sahil committed Jan 28, 2024
1 parent 55556bf commit b79d77e
Show file tree
Hide file tree
Showing 8 changed files with 503 additions and 291 deletions.
18 changes: 14 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,28 @@
"url": "git+https://github.com/juspay/zephyr-sdk-react.git"
},
"main": "dist/index.js",
"files": [
"dist",
"!dist/**/*.test.*",
"!dist/**/*.spec.*",
"scripts/postinstall.js"
],
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js"
}
},
"scripts": {
"dev": "npx tsc --watch",
"build": "rollup --config rollup.config.js",
"build": "tsc --build",
"format:all": "npx prettier --write .",
"lint:all": "eslint . --ext .ts"
},
"devDependencies": {
"@commitlint/cli": "^18.4.2",
"@commitlint/config-conventional": "^18.4.2",
"@digitalroute/cz-conventional-changelog-for-jira": "^8.0.1",
"@rollup/plugin-typescript": "^11.1.6",
"@types/react": "^18.2.48",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
Expand All @@ -45,9 +56,8 @@
"react": "^18.2.0",
"react-native": "^0.73.2",
"react-native-webview": "^13.6.4",
"rollup": "^4.9.6",
"tslib": "^2.6.2",
"type-decoder": "^1.2.0",
"type-decoder": "^2.0.1",
"typescript": "^5.2.2"
},
"peerDependencies": {
Expand Down
Loading

0 comments on commit b79d77e

Please sign in to comment.