{"_id":"@bleckcorp/easysupport-browser","name":"@bleckcorp/easysupport-browser","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@bleckcorp/easysupport-browser","version":"0.1.0","description":"Framework-neutral browser SDK for the EasySupport hosted widget and privacy-safe diagnostics.","type":"module","sideEffects":false,"exports":{".":{"types":"./src/index.d.ts","import":"./src/index.js","default":"./src/index.js"},"./screenshot":{"types":"./src/screenshot.d.ts","import":"./src/screenshot.js","default":"./src/screenshot.js"}},"types":"./src/index.d.ts","scripts":{"test":"node --test"},"dependencies":{"html2canvas":"^1.4.1"},"devDependencies":{"jsdom":"^26.1.0"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"license":"UNLICENSED","_id":"@bleckcorp/easysupport-browser@0.1.0","gitHead":"48056ab5095f609d7e3f2014603e745d410fc20c","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-HgQ0KDvF9gCNfn/gB9FtjqFnvg2kOlAsPaitKD50b2v7Db7iCEkgBL4gyK6Rvzb/GRh2S9hwtkZd7euktZXShg==","shasum":"543b06fe380bd524f166919acb516cc8b049523f","tarball":"https://registry.npmjs.org/@bleckcorp/easysupport-browser/-/easysupport-browser-0.1.0.tgz","fileCount":6,"unpackedSize":16526,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIF7RCkvFwk3zmdcv5xqCypmqevPGkeZIQROdrBGr2SEbAiAze92ibRa+LThvZAiAQznm8IZTmzvB87Ph74FTVKCmCg=="}]},"_npmUser":{"name":"bleckcorp","email":"bleckchuks@gmail.com"},"directories":{},"maintainers":[{"name":"bleckcorp","email":"bleckchuks@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/easysupport-browser_0.1.0_1785366125496_0.573804909375593"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-29T23:02:05.222Z","0.1.0":"2026-07-29T23:02:05.644Z","modified":"2026-07-29T23:02:05.946Z"},"maintainers":[{"name":"bleckcorp","email":"bleckchuks@gmail.com"}],"description":"Framework-neutral browser SDK for the EasySupport hosted widget and privacy-safe diagnostics.","license":"UNLICENSED","readme":"# `@bleckcorp/easysupport-browser`\n\nFramework-neutral integration for the hosted EasySupport widget.\n\n```bash\npnpm add @bleckcorp/easysupport-browser\n```\n\n```js\nimport { EasySupport } from '@bleckcorp/easysupport-browser';\n\nconst support = await EasySupport.init({\n  backendUrl: 'https://api.support.example.com',\n  widgetScriptUrl: 'https://support.example.com/easysupport-widget.js',\n  appKey: 'your-app-key',\n  widgetKey: 'your-public-widget-key',\n  user: {\n    externalId: currentUser.id,\n    name: currentUser.name,\n    email: currentUser.email,\n  },\n  context: {\n    organization: currentTenant.name,\n    tenantId: currentTenant.id,\n    role: currentUser.role,\n    surface: 'customer-portal',\n    appVersion: APP_VERSION,\n  },\n  diagnostics: {\n    screenshots: true,\n    redact: ['[data-customer-record]', '.payment-details'],\n  },\n});\n\nsupport.update({ user: nextUser, context: { tenantId: nextTenant.id } });\nsupport.destroy();\n```\n\nThe SDK tracks History API navigation and updates the current route without restarting the widget conversation.\nScreenshots are captured only after the reporter clicks the capture control. Inputs, editable fields, table cells,\nemails, phone numbers, dates, UUIDs, and long numeric IDs are masked by default. Add\n`data-easysupport-redact` to any application-specific sensitive region and `data-easysupport-ignore` to regions\nthat should not appear at all.\n\nOnly public, origin-restricted widget credentials belong in browser configuration. Never pass an application JWT,\nAPI secret, request headers, form contents, or domain records through `user`, `context`, or diagnostics metadata.\n","readmeFilename":"README.md","_rev":"1-b31544993968628f0b3c6095a96644ae"}