Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
1a98c46
Update deps
AttilaVargaw Mar 2, 2023
ec0a5e9
WIP Start flow map
AttilaVargaw Mar 2, 2023
64cd341
Coninue working on it
AttilaVargaw Mar 3, 2023
13af4c6
Error handling
AttilaVargaw Mar 3, 2023
50710ff
Font refactor
AttilaVargaw Mar 6, 2023
c4f0716
Add connect modal
AttilaVargaw Mar 6, 2023
4c4666d
Update deps
AttilaVargaw Mar 8, 2023
3457f84
Make near login work with iframe
AttilaVargaw Mar 9, 2023
d7d150e
Add minting to Near iframe
AttilaVargaw Mar 10, 2023
de591fb
Fix memory leak for event handler
AttilaVargaw Mar 10, 2023
4c8aa91
Fix error window
AttilaVargaw Mar 10, 2023
98d0930
Rename files
AttilaVargaw Mar 10, 2023
81d18d5
StandaloneClient, Widget
Mar 8, 2023
d21c915
StandaloneIframeClient
Mar 8, 2023
4359a26
Overrides
Mar 8, 2023
dc4d610
Cleanup event listeners
Mar 8, 2023
d61341b
Remove old code
Mar 9, 2023
61220b4
Fix public page
Mar 9, 2023
32212b5
Small fix
Mar 9, 2023
593a34e
Iframe fixes
Mar 9, 2023
b9191d8
Error handler
Mar 10, 2023
4d9eab0
Use window.postMessage
Mar 10, 2023
37c2c71
CSS font loading
Mar 10, 2023
332107f
Simplify CSS
Mar 10, 2023
7128474
Remove commemnts
Mar 10, 2023
f285383
Reducing diffs
AttilaVargaw Mar 10, 2023
92578ef
Further reduce diffs
AttilaVargaw Mar 10, 2023
3b6ff29
Set version back
AttilaVargaw Mar 10, 2023
95181ab
Reduce diffs
AttilaVargaw Mar 10, 2023
bff0cea
Reduce diffs
AttilaVargaw Mar 10, 2023
b3112d3
Rename
AttilaVargaw Mar 10, 2023
169f7b7
Merge remote-tracking branch 'origin/feature/flow-map' into merge/flo…
AttilaVargaw Mar 13, 2023
9e4a035
Remove unused code
Mar 13, 2023
4149903
mode selector
AttilaVargaw Mar 13, 2023
2947b1e
Near support
Mar 13, 2023
9febf40
Merge remote-tracking branch 'origin/merge/flow-map-v1' into merge/fl…
Mar 13, 2023
877fb59
Furhter refacts
AttilaVargaw Mar 13, 2023
a476508
Tiny fix
Mar 13, 2023
cba3063
Fixed error handling related stuff
AttilaVargaw Mar 14, 2023
d70cc16
Further fixes
AttilaVargaw Mar 15, 2023
2f41642
Fix a weird false positive error
AttilaVargaw Mar 15, 2023
5eaca7b
Make the iframe run again
AttilaVargaw Mar 23, 2023
bda9239
Fixes for near iframe
AttilaVargaw Mar 23, 2023
8d26a0a
Fix close button on iframe
AttilaVargaw Mar 23, 2023
7e93098
Fix paging
AttilaVargaw Mar 23, 2023
091859e
Fixes
AttilaVargaw Mar 24, 2023
ce38daa
Fix iframe walletconnect
AttilaVargaw Mar 24, 2023
878cf44
Fix input related problems
AttilaVargaw Mar 24, 2023
704bc44
Fix back on beginVerifiing
AttilaVargaw Mar 24, 2023
1147343
Fixed a lot of iframe related issues
AttilaVargaw Mar 24, 2023
48b1b61
Remove StandaloneClientCommon
balazsotakomaiya Mar 27, 2023
80733a2
Bugs fixed
balazsotakomaiya Apr 3, 2023
3f91890
Fix near login start state
balazsotakomaiya Apr 3, 2023
4d8912f
Update getNextStep.ts
balazsotakomaiya Apr 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
},
"[properties]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
},
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
}
24 changes: 12 additions & 12 deletions config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,19 @@ module.exports = function override(config, env) {
const fallback = {
...(config.resolve.fallback ? config.resolve.fallback : {}),
crypto: false,
http: false,
https: false,
os: false,
url: false,
}

const outDir = "./build"
config.target = "web"
config.entry = {
KycDaoClient: "./src/KycDaoClient.ts",
KycDaoIframeClient: "./src/KycDaoIframeClient.ts",
// "index": "./src/index.js",
app: "./src/App.tsx",
widget: "./src/widget.tsx",
Widget: "./src/Widget.tsx",
StandaloneClient: "./src/StandaloneClient.tsx",
StandaloneIframeClient: "./src/StandaloneIframeClient.tsx",
loadIframePage: "./src/loadIframePage.ts",
}
config.output = {
filename: "[name].js",
Expand All @@ -42,13 +45,6 @@ module.exports = function override(config, env) {
"@Images": path.resolve(__dirname, "src/images/"),
}

config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
ethereum: ["ethereum", "ethereum"],
}),
])

config.module.rules.unshift({
test: /\.(woff2?)$/,
dependency: { not: ["file"] },
Expand Down Expand Up @@ -100,6 +96,10 @@ module.exports = function override(config, env) {
)*/

config.plugins.push(
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
ethereum: "ethereum",
}),
new webpack.DefinePlugin({
"process.env.npm_package_name": JSON.stringify(
process.env.npm_package_name
Expand Down
51 changes: 24 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@
"import": "./dist/esm/index.js",
"require": "./dist/umd/index.js"
},
"./KycDaoClient": {
"import": "./dist/esm/KycDaoClient.js",
"script": "./dist/web/KycDaoClient.js",
"require": "./dist/umd/client.js"
},
"./KycDaoIframeClient": {
"import": "./dist/esm/KycDaoIframeClient.js",
"script": "./dist/web/KycDaoIframeClient.js",
"require": "./dist/umd/KycdaoIframeClient.js"
},
"./esm": "./dist/esm/index.js",
"./umd": "./dist/umd/index.js",
"./web": "./dist/web/index.js",
Expand All @@ -60,18 +50,20 @@
"./dist/": "./dist/"
},
"dependencies": {
"@kycdao/kycdao-sdk": "^0.6.10",
"styled-components": "^5.3.8",
"@kycdao/kycdao-sdk": "^0.6.11",
"@walletconnect/web3-provider": "^1.8.0",
"buffer": "^6.0.3",
"clsx": "^1.2.1",
"near-api-js": "^1.1.0",
"persona": "^4.7.2",
"qs": "^6.11.1",
"react-error-boundary": "^3.1.4",
"react-scripts": "^5.0.1",
"react-swipeable": "^7.0.0",
"react-twitter-embed": "^4.0.4",
"rxjs": "^7.8.0",
"stream": "^0.0.2"
"stream": "^0.0.2",
"styled-components": "^5.3.9"
},
"dependenciesMeta": {
"@toruslabs/eccrypto": {
Expand All @@ -94,28 +86,32 @@
}
},
"peerDependencies": {
"@walletconnect/web3-provider": "^1.8.0",
"react": "^18",
"react-dom": "^18"
},
"devDependencies": {
"@babel/cli": "^7.21.0",
"@babel/core": "7.21.0",
"@babel/plugin-transform-modules-umd": "7.18.6",
"@babel/plugin-transform-typescript": "^7.21.0",
"@babel/plugin-transform-typescript": "^7.21.3",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@playwright/test": "^1.31.2",
"@metamask/providers": "^10.2.1",
"@playwright/test": "^1.32.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.4.0",
"@types/node": "^18.14.6",
"@types/jest": "^29.5.0",
"@types/node": "^18.15.5",
"@types/qs": "^6.9.7",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@types/styled-components": "^5.1.26",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"@walletconnect/web3-provider": "^1.8.0",
"babel-plugin-macros": "^3.1.0",
"babel-plugin-module-resolver": "^5.0.0",
"babel-plugin-styled-components": "^2.0.7",
Expand All @@ -124,9 +120,9 @@
"concurrently": "^7.6.0",
"create-react-app": "^5.0.1",
"cross-env": "^7.0.3",
"eslint": "^8.35.0",
"eslint": "^8.36.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.7.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-playwright": "^0.12.0",
Expand All @@ -135,17 +131,17 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-rxjs": "^5.0.2",
"husky": "^8.0.3",
"lint-staged": "^13.1.2",
"lint-staged": "^13.2.0",
"npm-dts-webpack-plugin": "^1.3.12",
"prettier": "^2.8.4",
"prettier": "^2.8.6",
"react": "^18.2.0",
"react-app-rewired": "^2.2.1",
"react-dom": "^18.2.0",
"rimraf": "^4.3.1",
"rimraf": "^4.4.1",
"styled-components": "^5.3.8",
"tsc-alias": "^1.8.2",
"tsc-alias": "^1.8.4",
"typescript": "^4.9.5",
"webpack": "^5.75.0",
"webpack": "^5.76.3",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-subresource-integrity": "5.2.0-rc.1"
},
Expand Down Expand Up @@ -184,7 +180,8 @@
"jest-cli": "^29.4.3",
"core-js": "^3.28.0",
"bn.js": "^5.2.1",
"buffer": "^6.0.3"
"buffer": "^6.0.3",
"bs58": "^5.0.0"
}
}
}
Loading