Current collected state Current
Observed since 20 Oct, 18:30 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
1invoice-chat-widget
React widget package for the 1Invoice onboarding chat flow.
React widget package for the 1Invoice onboarding chat flow.
The widget uses @invoice-sdk/id_extraction_qr for CCCD front-side QR detection/OCR, so consuming Vite apps do not need to copy /scripts/ocr-sdk.js.
yarn build:widget
or:
yarn workspace 1invoice-chat-widget build
yarn add 1invoice-chat-widget
import { InvoiceChatWidget } from '1invoice-chat-widget'
import '1invoice-chat-widget/style.css'
export default function App() {
return (
<InvoiceChatWidget
apiBaseUrl={import.meta.env.VITE_INVOICE_HUB_URL}
providerCode="one-invoice"
bankCode={import.meta.env.VITE_INVOICE_HUB_BANK_CODE}
/>
)
}
type InvoiceChatWidgetProps = {
apiBaseUrl?: string
providerCode?: string
bankCode?: string
basePath?: string
className?: string
style?: React.CSSProperties
onClose?: () => void
}
apiBaseUrl can also fall back to VITE_INVOICE_HUB_URL when the consumer app is Vite-based.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
axiosEnvironment{
"local_name": "axios",
"alias": false,
"peer_metadata": null
} | ^1.16.0 | runtime |
qrcodeEnvironment{
"local_name": "qrcode",
"alias": false,
"peer_metadata": null
} | ^1.5.4 | runtime |
lucide-reactEnvironment{
"local_name": "lucide-react",
"alias": false,
"peer_metadata": null
} | ^0.454.0 | runtime |
@invoice-sdk/id_extraction_qrEnvironment{
"local_name": "@invoice-sdk/id_extraction_qr",
"alias": false,
"peer_metadata": null
} | ^1.8.3 | runtime |
viteEnvironment{
"local_name": "vite",
"alias": false,
"peer_metadata": null
} | ^5.4.21 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^5.9.3 | development |
@types/nodeEnvironment{
"local_name": "@types/node",
"alias": false,
"peer_metadata": null
} | ^22 | development |
tailwindcssEnvironment{
"local_name": "tailwindcss",
"alias": false,
"peer_metadata": null
} | ^4.1.9 | development |
@types/reactEnvironment{
"local_name": "@types/react",
"alias": false,
"peer_metadata": null
} | ^19 | development |
@types/qrcodeEnvironment{
"local_name": "@types/qrcode",
"alias": false,
"peer_metadata": null
} | ^1.5.6 | development |
@types/react-domEnvironment{
"local_name": "@types/react-dom",
"alias": false,
"peer_metadata": null
} | ^19 | development |
@tailwindcss/viteEnvironment{
"local_name": "@tailwindcss/vite",
"alias": false,
"peer_metadata": null
} | ^4.1.9 | development |
@vitejs/plugin-reactEnvironment{
"local_name": "@vitejs/plugin-react",
"alias": false,
"peer_metadata": null
} | ^4.7.0 | development |
reactEnvironment{
"local_name": "react",
"alias": false,
"peer_metadata": null
} | >=18 | peer |
react-domEnvironment{
"local_name": "react-dom",
"alias": false,
"peer_metadata": null
} | >=18 | peer |
Source distribution
{
"shasum": "8d2f3dd1073ff0b3fb95e183ed59257baa943c8a",
"tarball": "https://registry.npmjs.org/1invoice-chat-widget/-/1invoice-chat-widget-0.1.4.tgz",
"fileCount": 24,
"integrity": "sha512-HgpM8HBZ0ar9fqUtylEwrEBXVxKMjisRU17z+oDrHi8eBOh6BwhWSaDu/L4IAgm/c53XlyV7vQSa2M7S4Xj9Ug==",
"signatures": [
{
"sig": "MEYCIQCKU0G7aPInNomwsNiV89YmdQbD3dQXe3Prb8Vp8DEhbwIhAPJ4DzME8o9eV/0mjVdfV394IB9EioPilIVRKX/vs9wS",
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
}
],
"unpackedSize": 435060
}Observed since 20 Oct, 18:30 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:45a3d6ac58b5f55822c1ba526ec34e2fceea451330e86983ee9b1caf3d88ec80