@subiz/widget-v4
v4.1.216
Published
``` sh $ npm run dev ```
Readme
Subiz widget
To test widget
$ npm run devvisit: http://localhost:8082/?account_id=acqcsmrppbftadjzxnvo
The fallback button keeps the configured width and height and has an opaque white backing. Each dimension defaults to 70px only when it is not configured.
Masks use data URLs rather than blob URLs. If data URLs are blocked, the widget tries the original image URL with CORS before using the fallback button.
To test widget in injection mode
$ npm run devvisit: http://localhost:8082/inject.html?account_id=acqcsmrppbftadjzxnvo
Checks and release artifacts
Use Node.js 26 for development and tests.
npm ci
npm run check
npm run buildcheck runs the undefined-variable lint check and the tests against source
code in a DOM environment. Tests cover rendering, recalled messages, safe
URLs/HTML, upload failures, subscriptions, tickets and cache pagination.
build updates compiled_src before creating the browser bundles. npm pack
also runs the checks and regenerates the library through prepack, so the
published package includes the current source changes. Test files and the
test runner are excluded from the package.
NOTE:
Do not use built it functions !!! Since our script is running in client site. The built-in function may be overriden. For example: baydep.com use datejs which override Date, mojo library override JSON
JSON.stringify => sb.stringify JSON.parse => sb.parseJSON
Note about preact
preact above 10.19.3 cause form input problem reproduct: ,
- checkout to commit
- IMPORTANT: open new incognitor browser
- visit http://localhost:8082/?account_id=acpxkgumifuoofoosble
- input into form offline
- cannot submit (expted: can submit)
Test free chat AI agent for dai hoc hoa sen
Add 'only-chat' param to URL Logic was writen in index.html line 73->129. We can remove later
