Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
33c8d31
feat: added single-invoice web component
sstefdev Nov 24, 2024
edbc904
Merge branch 'main' of github.com:RequestNetwork/web-components into …
sstefdev Dec 10, 2024
bafa730
Merge branch 'main' of github.com:RequestNetwork/web-components into …
sstefdev Dec 10, 2024
d6894bf
Merge branch 'main' of github.com:RequestNetwork/web-components into …
sstefdev Dec 18, 2024
fc6def0
Merge branch 'main' of github.com:RequestNetwork/web-components into …
sstefdev Jan 8, 2025
d3a2a49
feat: updated and cleaned single invoice component, removed unused va…
sstefdev Jan 9, 2025
5d71ab1
fix: updated gitignore, added loading skeleton, resolved comments
sstefdev Jan 13, 2025
f1a0703
Merge branch 'main' of github.com:RequestNetwork/web-components into …
sstefdev Jan 14, 2025
317fc67
fix: decoupling utils, using new token list
sstefdev Jan 15, 2025
0723463
Update README to include @requestnetwork/single-invoice in link cmds
MantisClone Jan 15, 2025
a1ab494
add single-invoice to the publish github action
MantisClone Jan 15, 2025
397c437
Add single-invoice to the README
MantisClone Jan 15, 2025
0998eab
fix: added single-invoice share and path prop
sstefdev Jan 20, 2025
38c20d9
Merge branch 'main' of github.com:RequestNetwork/web-components into …
sstefdev Jan 20, 2025
6d71f05
Merge branch '151-invoice-page---a-web-component-to-view-and-pay-a-si…
sstefdev Jan 20, 2025
f17559d
chore: decouple utils folder
sstefdev Jan 20, 2025
4f04b6f
fix: add check for no address in formatAddress function
sstefdev Jan 20, 2025
90b56ff
fix: payment error and decimal issue on dashboard
sstefdev Jan 20, 2025
4872241
feat: added encryption
sstefdev Jan 20, 2025
4cb5573
chore: add readme
sstefdev Jan 20, 2025
ada0771
fix: remove debug comments
sstefdev Jan 20, 2025
ca8c8e2
chore: add token list to the readme
sstefdev Jan 20, 2025
a2efcb2
fix: remove decryption for non encrypted requests, whenchanging the w…
sstefdev Jan 20, 2025
21b3c3d
fix: share svg viewbox
sstefdev Jan 20, 2025
547f2ad
chore: update create invoice form declaration file
sstefdev Jan 20, 2025
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules
.turbo
dist
.svelte-kit
vite.congig.ts.timestamp*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ npm run link:all --app-path=../rn-checkout
cd <project>

# Use local packages instead of the deployed ones
npm link @requestnetwork/create-invoice-form @requestnetwork/invoice-dashboard
npm link @requestnetwork/create-invoice-form @requestnetwork/invoice-dashboard @requestnetwork/single-invoice
npm link @requestnetwork/payment-widget
```

Expand Down
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build:dashboard": "turbo run build --filter=@requestnetwork/invoice-dashboard",
"build:stakeholder": "turbo run build --filter=@requestnetwork/add-stakeholder",
"build:payment-widget": "turbo run build --filter=@requestnetwork/payment-widget",
"build:single-invoice": "turbo run build --filter=@requestnetwork/single-invoice",
"link:react": "npm link $npm_config_app_path/node_modules/react $npm_config_app_path/node_modules/react-dom",
"link:all": "npm run link:react --app-path=$npm_config_app_path && for d in packages/*; do (cd $d && npm link); done",
"unlink:all": "for d in packages/*; do (cd $d && npm unlink); done"
Expand Down
6 changes: 3 additions & 3 deletions packages/payment-widget/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"baseUrl": ".",
"paths": {
"$src/*": ["src/*"],
"$utils/*": ["src/lib/utils/*"],
},
"$utils/*": ["src/lib/utils/*"]
}
},
"include": ["src/**/*", "src/*.d.ts"],
"include": ["src/**/*", "src/*.d.ts"]
}
66 changes: 66 additions & 0 deletions packages/single-invoice/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"name": "@requestnetwork/single-invoice",
"version": "0.1.0",
"main": "./dist/web-component.umd.cjs",
"scripts": {
"dev": "vite dev",
"build": "npm run package",
"build:wc": "vite build -c vite.wc.config.ts",
"preview": "vite preview",
"package": "svelte-kit sync && svelte-package && npm run build:wc && publint",
"prepublishOnly": "npm run package",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"clean": "rm -rf dist && rm -rf .svelte-kit",
"check-release-type": "bash ../../scripts/check-release-type.sh",
"publish-next-release": "bash ../../scripts/publish-next-release.sh"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js",
"require": "./dist/web-component.umd.cjs",
"default": "./dist/web-component.js"
},
"./react": {
"types": "./dist/react/SingleInvoice.d.ts",
"default": "./dist/react/SingleInvoice.jsx"
}
},
"files": [
"dist",
"!dist/**/*.test.*",
"!dist/**/*.spec.*"
],
"dependencies": {
"@requestnetwork/payment-detection": "0.49.0",
"@requestnetwork/payment-processor": "0.52.0",
"@requestnetwork/request-client.js": "0.54.0",
"@wagmi/core": "^2.15.2",
"ethers": "^5.7.2",
"viem": "^2.21.53",
"wagmi": "^2.13.3"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.27.4",
"@sveltejs/package": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^2.5.2",
"publint": "^0.1.9",
"svelte": "^4.0.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"svelte-check": "^3.6.0",
"typescript": "^5.0.0",
"vite": "^4.4.2"
},
"type": "module",
"license": "MIT",
"publishConfig": {
"access": "public"
}
}
1 change: 1 addition & 0 deletions packages/single-invoice/src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as SingleInvoice } from "./single-invoice.svelte";
Loading
Loading