Catalog npm
Back to packageRELEASE DETAILS

0.1.4

npm

1invoice-chat-widget

React widget package for the 1Invoice onboarding chat flow.

Published26 May 2026
Direct dependencies15
Transitive dependenciesNot calculated

README

Current package documentation

1invoice-chat-widget

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.

Build

yarn build:widget

or:

yarn workspace 1invoice-chat-widget build

Usage In A Vite App

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}
    />
  )
}

Props

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 15

Native requirements
15 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
axios
Environment
{
  "local_name": "axios",
  "alias": false,
  "peer_metadata": null
}
^1.16.0runtime
qrcode
Environment
{
  "local_name": "qrcode",
  "alias": false,
  "peer_metadata": null
}
^1.5.4runtime
lucide-react
Environment
{
  "local_name": "lucide-react",
  "alias": false,
  "peer_metadata": null
}
^0.454.0runtime
@invoice-sdk/id_extraction_qr
Environment
{
  "local_name": "@invoice-sdk/id_extraction_qr",
  "alias": false,
  "peer_metadata": null
}
^1.8.3runtime
vite
Environment
{
  "local_name": "vite",
  "alias": false,
  "peer_metadata": null
}
^5.4.21development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.9.3development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^22development
tailwindcss
Environment
{
  "local_name": "tailwindcss",
  "alias": false,
  "peer_metadata": null
}
^4.1.9development
@types/react
Environment
{
  "local_name": "@types/react",
  "alias": false,
  "peer_metadata": null
}
^19development
@types/qrcode
Environment
{
  "local_name": "@types/qrcode",
  "alias": false,
  "peer_metadata": null
}
^1.5.6development
@types/react-dom
Environment
{
  "local_name": "@types/react-dom",
  "alias": false,
  "peer_metadata": null
}
^19development
@tailwindcss/vite
Environment
{
  "local_name": "@tailwindcss/vite",
  "alias": false,
  "peer_metadata": null
}
^4.1.9development
@vitejs/plugin-react
Environment
{
  "local_name": "@vitejs/plugin-react",
  "alias": false,
  "peer_metadata": null
}
^4.7.0development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
>=18peer
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
>=18peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "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
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:30 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:45a3d6ac58b5f55822c1ba526ec34e2fceea451330e86983ee9b1caf3d88ec80

Other collected versions

0.2.230 May0.2.129 May0.1.929 May0.1.828 May0.1.728 May0.1.628 MayView all collected versions →