{"_id":"@b2chatorg/chat-center-widget-sdk","_rev":"14-648785afb0815cfba2e5d8b9b0f805a3","name":"@b2chatorg/chat-center-widget-sdk","dist-tags":{"latest":"2.0.1"},"versions":{"1.1.1":{"name":"@b2chatorg/chat-center-widget-sdk","version":"1.1.1","license":"MIT","_id":"@b2chatorg/chat-center-widget-sdk@1.1.1","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"dist":{"shasum":"466b41336fb80a5886595be4ef70d1940c772b0b","tarball":"https://registry.npmjs.org/@b2chatorg/chat-center-widget-sdk/-/chat-center-widget-sdk-1.1.1.tgz","fileCount":93,"integrity":"sha512-XRPa/N3a+OuFA/mQNvOhRa7jUnT46/W9A0EVeAC+34CUYU24bjR3UKEDenOYpmtFKX5BcQGcS25UCFuz4anvdg==","signatures":[{"sig":"MEQCICJFhrUFikalOiBz6+bvuWV56/aAE3xtLY264TQd9mgMAiAOd2yztIS+d2bp7W+sy6smlgNw7JY6CdwX72lTspCiWQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":117184},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"ebcb9ea20280b10f34f11013726ea62dfe57fc93","scripts":{"test":"jest","build":"tsc","bump:major":"yarn version --no-git-tag-version --major","bump:minor":"yarn version --no-git-tag-version --minor","bump:patch":"yarn version --no-git-tag-version --patch","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","postversion":"bin/postversion.sh"},"_npmUser":{"name":"smithb2chat","email":"smith@b2chat.io"},"_npmVersion":"8.19.4","directories":{},"_nodeVersion":"16.20.2","browserslist":"> 0.5%, last 2 versions, not dead","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","jsdom":"^22.1.0","babel-jest":"^29.7.0","typescript":"^5.2.2","@babel/core":"^7.22.20","@types/react":"^18.2.21","@types/redux":"^3.6.0","@jest/globals":"^29.7.0","@babel/preset-env":"^7.22.20","@babel/preset-typescript":"^7.22.15"},"_npmOperationalInternal":{"tmp":"tmp/chat-center-widget-sdk_1.1.1_1700078009807_0.3417268337210857","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.2.0":{"name":"@b2chatorg/chat-center-widget-sdk","version":"1.2.0","license":"MIT","_id":"@b2chatorg/chat-center-widget-sdk@1.2.0","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"dist":{"shasum":"3a85ba2984812733573abdfa2b5a5f134b345294","tarball":"https://registry.npmjs.org/@b2chatorg/chat-center-widget-sdk/-/chat-center-widget-sdk-1.2.0.tgz","fileCount":93,"integrity":"sha512-iRybifuP912ngInEAdjnxgdL1g9fE+dVnH9xFaGTG6qnhiPtAHQodqQbz4rlQAGoVK0M6+H0W50NVqdqNZCGpA==","signatures":[{"sig":"MEUCIEpElf2kbh55A29THjBxLFkK1ymFp9iYCANKgLFk+69qAiEAiazWLkvjfgW0jbg6RSiWMd4QLdaqvBQD/YHVY7wSJ9E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":118855},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"ce0b03bcb9838d384f2a73172d0c80eaa6d5c954","scripts":{"test":"jest","build":"tsc","bump:major":"yarn version --no-git-tag-version --major","bump:minor":"yarn version --no-git-tag-version --minor","bump:patch":"yarn version --no-git-tag-version --patch","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","postversion":"bin/postversion.sh"},"_npmUser":{"name":"smithb2chat","email":"smith@b2chat.io"},"_npmVersion":"8.19.4","directories":{},"_nodeVersion":"16.20.2","browserslist":"> 0.5%, last 2 versions, not dead","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","jsdom":"^22.1.0","babel-jest":"^29.7.0","typescript":"^5.2.2","@babel/core":"^7.22.20","@types/react":"^18.2.21","@types/redux":"^3.6.0","@jest/globals":"^29.7.0","@babel/preset-env":"^7.22.20","@babel/preset-typescript":"^7.22.15"},"_npmOperationalInternal":{"tmp":"tmp/chat-center-widget-sdk_1.2.0_1700160323726_0.7863478137948827","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.2.1":{"name":"@b2chatorg/chat-center-widget-sdk","version":"1.2.1","license":"MIT","_id":"@b2chatorg/chat-center-widget-sdk@1.2.1","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"dist":{"shasum":"37137926449ad89a790190dc6e364fdc4f735bc1","tarball":"https://registry.npmjs.org/@b2chatorg/chat-center-widget-sdk/-/chat-center-widget-sdk-1.2.1.tgz","fileCount":93,"integrity":"sha512-aO83cH0zxOP6dItcakQsoVKaEx2qgVPb6tsG5E2dEevXIppxK0NZBFjawUZR/Mc0yt/GBmfhCgSB7nGqvVSJbw==","signatures":[{"sig":"MEQCIDHUEhg4jXUbBi3V+gPcDMhYmAj2Z9LXtx60Qe0V78S5AiBntYKaw8t9OkzsOoHw3nZXPkoje1j3+SabRjEijWNe4w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":119411},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"bcc1fa5d26013a9124d6c9e16f5ea0d13e9e5c2b","scripts":{"test":"jest","build":"tsc","bump:major":"yarn version --no-git-tag-version --major","bump:minor":"yarn version --no-git-tag-version --minor","bump:patch":"yarn version --no-git-tag-version --patch","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","postversion":"bin/postversion.sh"},"_npmUser":{"name":"smithb2chat","email":"smith@b2chat.io"},"_npmVersion":"8.19.4","directories":{},"_nodeVersion":"16.20.2","browserslist":"> 0.5%, last 2 versions, not dead","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","jsdom":"^22.1.0","babel-jest":"^29.7.0","typescript":"^5.2.2","@babel/core":"^7.22.20","@types/react":"^18.2.21","@types/redux":"^3.6.0","@jest/globals":"^29.7.0","@babel/preset-env":"^7.22.20","@babel/preset-typescript":"^7.22.15"},"_npmOperationalInternal":{"tmp":"tmp/chat-center-widget-sdk_1.2.1_1700255261335_0.3489170861303694","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.2.2":{"name":"@b2chatorg/chat-center-widget-sdk","version":"1.2.2","license":"MIT","_id":"@b2chatorg/chat-center-widget-sdk@1.2.2","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"dist":{"shasum":"e1fbac6e543e0bf836418a8c1aa3f9117076192e","tarball":"https://registry.npmjs.org/@b2chatorg/chat-center-widget-sdk/-/chat-center-widget-sdk-1.2.2.tgz","fileCount":93,"integrity":"sha512-AYtjvncq2aoA7fqNnFKCSXelcWr++GNjk5iIlxXh77Mvs1CBHWUz2gtkGZD1S8ZRxika3hebBmeznxwNFX127Q==","signatures":[{"sig":"MEQCIBfkG1kS+UlJ/nHGXY1g0GZbnqopnhdgKJWswbvzGE5JAiADgsG8EO/mzJCmvigTCUFgXgqSg7+8NtuT9FnMBkfK0w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":121487},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"47e4a0ebf5bfdb6bb811bcbfa88928349829960a","scripts":{"test":"jest","build":"tsc","bump:major":"yarn version --no-git-tag-version --major","bump:minor":"yarn version --no-git-tag-version --minor","bump:patch":"yarn version --no-git-tag-version --patch","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","postversion":"bin/postversion.sh"},"_npmUser":{"name":"smithb2chat","email":"smith@b2chat.io"},"_npmVersion":"8.19.4","directories":{},"_nodeVersion":"16.20.2","browserslist":"> 0.5%, last 2 versions, not dead","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","jsdom":"^22.1.0","babel-jest":"^29.7.0","typescript":"^5.2.2","@babel/core":"^7.22.20","@types/react":"^18.2.21","@types/redux":"^3.6.0","@jest/globals":"^29.7.0","@babel/preset-env":"^7.22.20","@babel/preset-typescript":"^7.22.15"},"_npmOperationalInternal":{"tmp":"tmp/chat-center-widget-sdk_1.2.2_1700606644721_0.17186662945370945","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.3.0":{"name":"@b2chatorg/chat-center-widget-sdk","version":"1.3.0","license":"MIT","_id":"@b2chatorg/chat-center-widget-sdk@1.3.0","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"dist":{"shasum":"e44b1b7d1b88ecfdc0f55cd2549c95c4cdb741da","tarball":"https://registry.npmjs.org/@b2chatorg/chat-center-widget-sdk/-/chat-center-widget-sdk-1.3.0.tgz","fileCount":93,"integrity":"sha512-oMbpyia3VpBeBTAm+SXNE/D6OdOrRpcK8hcoLgUmT9kemU9xZnLKSyk9uaMSyhPVYuJubpVdhy/+YG9Abmw3BQ==","signatures":[{"sig":"MEYCIQDRTPmInEVnptL5UsM6GhrYw6sEaTJtNJxkSfuRb07jEwIhALzgaTa1c4IuflyJtaDse51OW7hUt5H/XZ7XZEqIMmzS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":121487},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"19939fededff1bb8247e98ceca276b34772d0f4b","scripts":{"test":"jest","build":"tsc","bump:major":"yarn version --no-git-tag-version --major","bump:minor":"yarn version --no-git-tag-version --minor","bump:patch":"yarn version --no-git-tag-version --patch","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","postversion":"bin/postversion.sh"},"_npmUser":{"name":"smithb2chat","email":"smith@b2chat.io"},"_npmVersion":"8.19.4","directories":{},"_nodeVersion":"16.20.2","browserslist":"> 0.5%, last 2 versions, not dead","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","jsdom":"^22.1.0","babel-jest":"^29.7.0","typescript":"^5.2.2","@babel/core":"^7.22.20","@types/react":"^18.2.21","@types/redux":"^3.6.0","@jest/globals":"^29.7.0","@babel/preset-env":"^7.22.20","@babel/preset-typescript":"^7.22.15"},"_npmOperationalInternal":{"tmp":"tmp/chat-center-widget-sdk_1.3.0_1700662659546_0.8342100967973678","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.3.1":{"name":"@b2chatorg/chat-center-widget-sdk","version":"1.3.1","license":"MIT","_id":"@b2chatorg/chat-center-widget-sdk@1.3.1","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"dist":{"shasum":"83f6404d0dc38ef5cb5e0728fbfb0eee6a240b82","tarball":"https://registry.npmjs.org/@b2chatorg/chat-center-widget-sdk/-/chat-center-widget-sdk-1.3.1.tgz","fileCount":94,"integrity":"sha512-Vz+q90k7VeuhnCFwmjRxwUSaUHFKYUHp3e08n+fiaLCMzuCXvc0mkKgXz0Wd86JpQSWowcxnVmWOgg6ziosNUw==","signatures":[{"sig":"MEQCIBZrnzRBe6zTifDAS58YJrA9Z+7dMt3FIMo35pAOJIdqAiAbhOxmTXMCM1+rteeTDuNs+gRIUcLQy7gzgLbCSNNNqg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":128519},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"da6611b53ddc990215e9728b23375c41f2fbded0","scripts":{"test":"jest","build":"tsc","bump:major":"yarn version --no-git-tag-version --major","bump:minor":"yarn version --no-git-tag-version --minor","bump:patch":"yarn version --no-git-tag-version --patch","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","postversion":"bin/postversion.sh"},"_npmUser":{"name":"smithb2chat","email":"smith@b2chat.io"},"_npmVersion":"8.19.4","directories":{},"_nodeVersion":"16.20.2","browserslist":"> 0.5%, last 2 versions, not dead","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","jsdom":"^22.1.0","babel-jest":"^29.7.0","typescript":"^5.2.2","@babel/core":"^7.22.20","@types/react":"^18.2.21","@types/redux":"^3.6.0","@jest/globals":"^29.7.0","@babel/preset-env":"^7.22.20","@babel/preset-typescript":"^7.22.15"},"_npmOperationalInternal":{"tmp":"tmp/chat-center-widget-sdk_1.3.1_1700769304616_0.746476779730368","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.3.2":{"name":"@b2chatorg/chat-center-widget-sdk","version":"1.3.2","license":"MIT","_id":"@b2chatorg/chat-center-widget-sdk@1.3.2","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"dist":{"shasum":"cc4207df568b8c4925613dfacfa5e0e135d75252","tarball":"https://registry.npmjs.org/@b2chatorg/chat-center-widget-sdk/-/chat-center-widget-sdk-1.3.2.tgz","fileCount":94,"integrity":"sha512-Z/mSVYKrfs7N3oge0ZdJF+M3Ot4sQx9Onziy97mbNLmj6x1rDaedlh904KVPNaiwWOWwYSpIdtlm08DxlvKKOg==","signatures":[{"sig":"MEYCIQCJ9TcE8J2878ugRv8/kkjfxRJlBrVHxtx1h9V2xQpqmAIhAOhJpkxy49oxi5LDBdYwvOoLC6+3jWKEEZjSs5zpF/HH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":128519},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"210ed356c4628c68787059e1431b9189435c1d71","scripts":{"test":"jest","build":"tsc","bump:major":"yarn version --no-git-tag-version --major","bump:minor":"yarn version --no-git-tag-version --minor","bump:patch":"yarn version --no-git-tag-version --patch","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","postversion":"bin/postversion.sh"},"_npmUser":{"name":"smithb2chat","email":"smith@b2chat.io"},"_npmVersion":"8.19.4","directories":{},"_nodeVersion":"16.20.2","browserslist":"> 0.5%, last 2 versions, not dead","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","jsdom":"^22.1.0","babel-jest":"^29.7.0","typescript":"^5.2.2","@babel/core":"^7.22.20","@types/react":"^18.2.21","@types/redux":"^3.6.0","@jest/globals":"^29.7.0","@babel/preset-env":"^7.22.20","@babel/preset-typescript":"^7.22.15"},"_npmOperationalInternal":{"tmp":"tmp/chat-center-widget-sdk_1.3.2_1700775853239_0.7494871157734795","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.3.3":{"name":"@b2chatorg/chat-center-widget-sdk","version":"1.3.3","license":"MIT","_id":"@b2chatorg/chat-center-widget-sdk@1.3.3","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"dist":{"shasum":"c8db1e56e6518327320f5ba17945ea2891149165","tarball":"https://registry.npmjs.org/@b2chatorg/chat-center-widget-sdk/-/chat-center-widget-sdk-1.3.3.tgz","fileCount":94,"integrity":"sha512-9V4+q8O6yruAaMIpwHcVgwGsXoS98AXlIcDVpnNza33NM+YoA5p+HNCwx57PNIP+BfAnPXozUFvrdK51DR7Z7Q==","signatures":[{"sig":"MEUCIQD1rocfy8rNhDZiZNS/kyAy3uz/VBsJMm04P4jwwcSEIwIgRugJqDLkuaNQ4V7Oj/OjMUPy349+ia3+jpk7SZOjx+M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":135444},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"f23dd947f1d33a47abd1aa3227821318a3548f80","scripts":{"test":"jest","build":"tsc","bump:major":"yarn version --no-git-tag-version --major","bump:minor":"yarn version --no-git-tag-version --minor","bump:patch":"yarn version --no-git-tag-version --patch","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","postversion":"bin/postversion.sh"},"_npmUser":{"name":"smithb2chat","email":"smith@b2chat.io"},"_npmVersion":"8.19.4","directories":{},"_nodeVersion":"16.20.2","browserslist":"> 0.5%, last 2 versions, not dead","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","jsdom":"^22.1.0","babel-jest":"^29.7.0","typescript":"^5.2.2","@babel/core":"^7.22.20","@types/react":"^18.2.21","@types/redux":"^3.6.0","@jest/globals":"^29.7.0","@babel/preset-env":"^7.22.20","@babel/preset-typescript":"^7.22.15"},"_npmOperationalInternal":{"tmp":"tmp/chat-center-widget-sdk_1.3.3_1701103810770_0.08429734223435625","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.3.4":{"name":"@b2chatorg/chat-center-widget-sdk","version":"1.3.4","license":"MIT","_id":"@b2chatorg/chat-center-widget-sdk@1.3.4","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"dist":{"shasum":"1466d01fdb54f74e87f881c0c15818e92c18542b","tarball":"https://registry.npmjs.org/@b2chatorg/chat-center-widget-sdk/-/chat-center-widget-sdk-1.3.4.tgz","fileCount":95,"integrity":"sha512-mngcxC/L/dAXvVXtcoAvw1D0LIcTAGqp7zhKye6Tvwo+NEeEHAT+8EeZUcnoVzBgrpR1zGDSavq91pbaiCfyuw==","signatures":[{"sig":"MEUCIBt+vsxYpKlNo2XMkO6naYXnxw51OH3JNDfQR9R62aRiAiEAjAFj+Ltnz2OlK9WeB1ztLXYjKagx9kkZNqTMG5skmus=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":142360},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"0219a501d22934d67b3c29858ffcb40227ef2af4","scripts":{"test":"jest","build":"tsc","bump:major":"yarn version --no-git-tag-version --major","bump:minor":"yarn version --no-git-tag-version --minor","bump:patch":"yarn version --no-git-tag-version --patch","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","postversion":"bin/postversion.sh"},"_npmUser":{"name":"smithb2chat","email":"smith@b2chat.io"},"_npmVersion":"8.19.4","description":"This is small lib that allows interoperabilty with [B2Chat Console](https://app.b2chat.io/agent/chat])","directories":{},"_nodeVersion":"16.20.2","browserslist":"> 0.5%, last 2 versions, not dead","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","jsdom":"^22.1.0","babel-jest":"^29.7.0","typescript":"^5.2.2","@babel/core":"^7.22.20","@types/react":"^18.2.21","@types/redux":"^3.6.0","@jest/globals":"^29.7.0","@babel/preset-env":"^7.22.20","@babel/preset-typescript":"^7.22.15"},"_npmOperationalInternal":{"tmp":"tmp/chat-center-widget-sdk_1.3.4_1701212083027_0.7539594410397294","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.3.5":{"name":"@b2chatorg/chat-center-widget-sdk","version":"1.3.5","license":"MIT","_id":"@b2chatorg/chat-center-widget-sdk@1.3.5","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"dist":{"shasum":"db1ce75a846deb5d8eefa56c4ee0164f458eea34","tarball":"https://registry.npmjs.org/@b2chatorg/chat-center-widget-sdk/-/chat-center-widget-sdk-1.3.5.tgz","fileCount":95,"integrity":"sha512-P35LuTudPig9+By28IpP5QM/4HMN2cO1oGDZfcizGzc3IWtUJcL/8xMiKZJ+ro1AmPAvAdPGGe+0rJ6QktMWQg==","signatures":[{"sig":"MEYCIQD2U7VqiaO3+exU4RH6gK0DGx+1yQmdhkM3yrOkTp4p4QIhAPhDNCEUp+YwLi7+x6/+kTy8XLWoDV8Nmh89lRjsfnlA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":142356},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"f17b108cfeda387055c279a5a3fe3996e64651f1","scripts":{"test":"jest","build":"tsc","bump:major":"yarn version --no-git-tag-version --major","bump:minor":"yarn version --no-git-tag-version --minor","bump:patch":"yarn version --no-git-tag-version --patch","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","postversion":"bin/postversion.sh"},"_npmUser":{"name":"smithb2chat","email":"smith@b2chat.io"},"_npmVersion":"8.19.4","description":"This is small lib that allows interoperabilty with [B2Chat Console](https://app.b2chat.io/agent/chat])","directories":{},"_nodeVersion":"16.20.2","browserslist":"> 0.5%, last 2 versions, not dead","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","jsdom":"^22.1.0","babel-jest":"^29.7.0","typescript":"^5.2.2","@babel/core":"^7.22.20","@types/react":"^18.2.21","@types/redux":"^3.6.0","@jest/globals":"^29.7.0","@babel/preset-env":"^7.22.20","@babel/preset-typescript":"^7.22.15"},"_npmOperationalInternal":{"tmp":"tmp/chat-center-widget-sdk_1.3.5_1701289900580_0.8361373850181304","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.3.6":{"name":"@b2chatorg/chat-center-widget-sdk","version":"1.3.6","license":"MIT","_id":"@b2chatorg/chat-center-widget-sdk@1.3.6","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"dist":{"shasum":"331ed4749f530f82efd640166837f8d5155aa42e","tarball":"https://registry.npmjs.org/@b2chatorg/chat-center-widget-sdk/-/chat-center-widget-sdk-1.3.6.tgz","fileCount":95,"integrity":"sha512-PmpzUHAdNMFsBnLS6lwiMslluBnRBZRYsVA8sAim5OlxH0g4jxGNarTF1W+cUH+dO183xKi6iop4/rO8CRsUUA==","signatures":[{"sig":"MEMCH3mg2gSb0SMRsaeZhX3Em9AGeG2gGeg5tUWhnIHGtIICIGnJxryPn9Qh2baaMQBD9fd0C11tA44VoOIiYGXYTvQv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":145621},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"9fbb12ba7cb9baafcbdb78fc525935ddcafba280","scripts":{"test":"jest","build":"tsc","bump:major":"yarn version --no-git-tag-version --major","bump:minor":"yarn version --no-git-tag-version --minor","bump:patch":"yarn version --no-git-tag-version --patch","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","postversion":"bin/postversion.sh"},"_npmUser":{"name":"smithb2chat","email":"smith@b2chat.io"},"_npmVersion":"8.19.4","description":"This is small lib that allows interoperabilty with [B2Chat Console](https://app.b2chat.io/agent/chat])","directories":{},"_nodeVersion":"16.20.2","browserslist":"> 0.5%, last 2 versions, not dead","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","jsdom":"^22.1.0","babel-jest":"^29.7.0","typescript":"^5.2.2","@babel/core":"^7.22.20","@types/react":"^18.2.21","@types/redux":"^3.6.0","@jest/globals":"^29.7.0","@babel/preset-env":"^7.22.20","@babel/preset-typescript":"^7.22.15"},"_npmOperationalInternal":{"tmp":"tmp/chat-center-widget-sdk_1.3.6_1702415073769_0.8497187835559346","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.0":{"name":"@b2chatorg/chat-center-widget-sdk","version":"2.0.0","license":"MIT","_id":"@b2chatorg/chat-center-widget-sdk@2.0.0","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"dist":{"shasum":"a70bc883287538cd82e168a1292561b169d76651","tarball":"https://registry.npmjs.org/@b2chatorg/chat-center-widget-sdk/-/chat-center-widget-sdk-2.0.0.tgz","fileCount":101,"integrity":"sha512-4YN42bBgStzMZb56GLU2Eg6lcqkA4dcnn9JTg/AMgmLxxthAmNe8BL5HgmypPh4x3bG13Odj606SNAP5j/UwaQ==","signatures":[{"sig":"MEUCIQDWMnrlVk2KEQ6ELt/gJQzKO6DC8nMRusE4XKhQFefU3gIgfnonBZDH7WFV/ks1MWCJGhXWuUogFkD3mjM2OETTBMk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":156911},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"c0e262a2203e07232242a1d1a991f584a832b1bc","scripts":{"test":"jest","build":"tsc","bump:major":"yarn version --no-git-tag-version --major","bump:minor":"yarn version --no-git-tag-version --minor","bump:patch":"yarn version --no-git-tag-version --patch","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","postversion":"bin/postversion.sh"},"_npmUser":{"name":"smithb2chat","email":"smith@b2chat.io"},"_npmVersion":"8.19.4","description":"This is small lib that allows interoperabilty with [B2Chat Console](https://app.b2chat.io/agent/chat])","directories":{},"_nodeVersion":"16.20.2","browserslist":"> 0.5%, last 2 versions, not dead","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","jsdom":"^22.1.0","babel-jest":"^29.7.0","typescript":"^5.2.2","@babel/core":"^7.22.20","@types/react":"^18.2.21","@types/redux":"^3.6.0","@jest/globals":"^29.7.0","@babel/preset-env":"^7.22.20","@babel/preset-typescript":"^7.22.15"},"_npmOperationalInternal":{"tmp":"tmp/chat-center-widget-sdk_2.0.0_1705428648409_0.4238470481207717","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"2.0.1":{"name":"@b2chatorg/chat-center-widget-sdk","version":"2.0.1","license":"MIT","_id":"@b2chatorg/chat-center-widget-sdk@2.0.1","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"dist":{"shasum":"70d5b5766262e74f036e86ba9218cc6ad0dc29ba","tarball":"https://registry.npmjs.org/@b2chatorg/chat-center-widget-sdk/-/chat-center-widget-sdk-2.0.1.tgz","fileCount":103,"integrity":"sha512-5o8sMpcS+MWr+OTeHxw9QmmQYyVhGGgNgDjuDKXoBBH1mboQQaDEAhdV+Ws9xpZ1ZZaZnkfrBzcGAoO0HCVDtg==","signatures":[{"sig":"MEQCIDt8GohucjpX5GW4OJyqr/j38kCuKM7dP1W7XaIUCbuZAiBFrVOQJ3ClPYjGGQYGNFrJML4eGT2J7q1tNCZ+usKC/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":152764},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"4c981762d33bd7f9d2decef62303d57a768b7158","scripts":{"test":"jest","build":"tsc","bump:major":"yarn version --no-git-tag-version --major","bump:minor":"yarn version --no-git-tag-version --minor","bump:patch":"yarn version --no-git-tag-version --patch","test:watch":"NODE_OPTIONS=--experimental-vm-modules jest --watch","postversion":"bin/postversion.sh"},"_npmUser":{"name":"smithb2chat","email":"smith@b2chat.io"},"_npmVersion":"10.5.2","description":"This is small lib that allows interoperabilty with [B2Chat Console](https://app.b2chat.io/agent/chat])","directories":{},"_nodeVersion":"20.13.1","browserslist":"> 0.5%, last 2 versions, not dead","dependencies":{"jose":"^5.3.0"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","jsdom":"^22.1.0","babel-jest":"^29.7.0","typescript":"^5.2.2","@babel/core":"^7.22.20","@types/react":"^18.2.21","@types/redux":"^3.6.0","@jest/globals":"^29.7.0","@babel/preset-env":"^7.22.20","@babel/preset-typescript":"^7.22.15"},"_npmOperationalInternal":{"tmp":"tmp/chat-center-widget-sdk_2.0.1_1716492000558_0.8436667554032962","host":"s3://npm-registry-packages"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2023-11-15T19:53:29.722Z","modified":"2026-07-06T17:29:24.488Z","1.1.1":"2023-11-15T19:53:29.969Z","1.2.0":"2023-11-16T18:45:23.918Z","1.2.1":"2023-11-17T21:07:41.492Z","1.2.2":"2023-11-21T22:44:04.936Z","1.3.0":"2023-11-22T14:17:39.691Z","1.3.1":"2023-11-23T19:55:04.779Z","1.3.2":"2023-11-23T21:44:13.393Z","1.3.3":"2023-11-27T16:50:10.995Z","1.3.4":"2023-11-28T22:54:43.230Z","1.3.5":"2023-11-29T20:31:40.741Z","1.3.6":"2023-12-12T21:04:33.997Z","2.0.0":"2024-01-16T18:10:48.578Z","2.0.1":"2024-05-23T19:20:00.709Z"},"license":"MIT","description":"This is small lib that allows interoperabilty with [B2Chat Console](https://app.b2chat.io/agent/chat])","maintainers":[{"name":"smithb2chat","email":"smith@b2chat.io"}],"readme":"## @b2chatorg/chat-center-widget-sdk\n\nThis is small lib that allows interoperabilty with [B2Chat Console](https://app.b2chat.io/agent/chat])\n\n## Getting start\n\n- [Installation](#Installation)\n- [Usage](#Usage)\n\n## [Core](#Core)\n\n- [EventEmitter](#EventEmitter)\n- [Writable](#Writable)\n- [Readable](#Readable)\n- [React hook useAsyncFunction](#React%20Hook%20UseAsyncFunction)\n\n## [B2ChatStore](#B2ChatStore)\n\n- [Properties](#Properties)\n  - [activeChat](#activeChat:%20Readable<Chat>)\n  - [agentInfo](#agentInfo:%20Readable<AgentInfo>)\n  - [departments](#departments:%20Readable<Department[]>)\n  - [inputMessageContent](#inputMessageContent:%20InputMessageContent)\n- [Events](#Events)\n  - [chatClosed](#chatClosed)\n- [Methods](#Methods)\n  - [findChat](#findChat)\n  - [getTags](#getTags)\n  - [assignedTags](#assignedTags)\n  - [assignTags](#assignTags)\n  - [unassignTags](#unassignTags)\n  - [setInputMessageContent](#setInputMessageContent)\n  - [updateChatInfo](#updateChatInfo)\n  - [getContactInfoProperties](#getContactInfoProperties)\n  - [getUUID](#getUUID)\n  - [sendMessage](#sendMessage)\n  - [findContact](#findContact)\n  - [Types](#Types)\n\n<br>\n<br>\n\n# Installation\n\nWe recommend to use this **React** [template](https://github.com/b2chat/cra-template-b2chat-widget) to bootstrap a widget\n\nBut if you prefer use a different UI lib than **React** as **Svelte** or **Vue**, only need to install this package:\n\n```sh\nnpm install @b2chatorg/chat-center-widget-sdk\n```\n\nand start the development server at **3010** port.\n\n### Usage\n\nYou can subscribe to properties.\n\n```js\nimport { getB2ChatStore } from \"@b2chatorg/chat-center-widget-sdk\";\n\n/// get b2chat store instance\nconst store = getB2ChatStore();\n\n// subscribe to new changes\nconst unsub = store.state.activeChat.subscribe((chat) => {\n  console.log(chat);\n});\n\n// stop receive changes\nunsub();\n```\n\nYou can do the same with React.\n\n```jsx\nimport { useEffect, useState } from \"react\";\nimport { useB2ChatStore } from \"@b2chatorg/chat-center-widget-sdk/dist/react\";\n\nconst App = () => {\n  const { state } = useB2ChatStore();\n\n  useEffect(() => { // subscribe to new changes\n    console.log(state.activeChat);\n  }, [state.activeChat]);\n\n  return (\n    <div>{state.activeChat.chatId}<div>\n  );\n};\n```\n\n# Core\n\nThese are utils that are available for public usage and are the core of this SDK.\n\n## EventEmitter [➡️]()\n\n```ts\nimport { eventEmitter } from \"@b2chatorg/chat-center-widget-sdk/dist/utils/eventEmitter\";\n\nconst eventEmitter: <T>(start?: StartStopNotifier<T>) => EventEmitter<T>;\n```\n\nA function that create a minimal **EventEmitter** to dispatch a single event type. It is an object with `dispatch` and `subscribe` methods.\n\n#### `subscribe`, `dispatch` Methods\n\n```ts\n// start: StartStopNotifier\nconst emitter = eventEmitter<string>();\n\nconst unsubscribe = emitter.subscribe((event) => console.log(event));\n\nemitter.dispatch(\"hello\"); // logs 'hello'\n\nunsubscribe(); // unsubscribe\n\nemitter.dispatch(\"world\"); // does nothing\n```\n\n#### `start/stop` Lifecycle\n\n`start` is executed just before the first subscription, it could returns a `stop` callback that will be executed by the emitter after the last unsubscription.\n\n```ts\n// `start` callback\nconst emitter = eventEmitter<string>((dispatch) => {\n  console.log(\"first subscriber\");\n\n  // `stop` callback\n  return () => console.log(\"no subscribers\");\n});\n\nemitter.dispatch(\"hello\"); // does nothing\n\nconst unsub = emitter.subscribe((event) => {\n  console.log(event);\n}); // logs `first subscriber`;\n\nemitter.dispatch(\"hello\"); // logs 'hello'\n\nunsub(); // will exec `stop` callback and logs 'no subscribers'\n```\n\n# Writable\n\n```ts\nexport const writable = <T>(\n  initialValue: T,\n  start?: StartStopNotifier<T>,\n  equalFn: EqualFn<T> = strictEquals\n) => Writable<T>;\n```\n\nIt creates a mutable value **observable**\n\n### Usage\n\n#### `subscribe`, `get`, `set` and `update`\n\n```ts\nimport { writable } from \"@b2chatorg/chat-center-widget-sdk/dist/utils/store\";\n\nconst count = writable<number>(0);\n\nconst unsub = count.subscribe((value) => console.log(value));\n\ncount.set(2); // logs '1'\nconsole.log(count.get()); // logs '1'\n\ncount.update((current) => current + 1); // increments count and logs '2'\n\nunsub(); // unobserve count\n```\n\n#### `when(predicate)`\n\nIt waits for condition to be fulfill\n\n```ts\nconst counter = writable(0, (set, update) => {\n  const interval = setInterval(() => {\n    update(val => val + 1)\n  }, 1000)\n\n  return () => clearInterval(interval)\n});\n\nasync waitUntil10() {\n  await counter.when(val => val === 10)\n  console.log('10 reached!')\n}\n\nwaitUntil10()\n```\n\n# Readable\n\n```ts\nexport const readable = <T>(\n  initialValue: T,\n  start?: StartStopNotifier<T>,\n  equalFn: EqualFn<T> = strictEquals\n): Readable<T> => writable(initialValue, start, equalFn);\n```\n\nSimilar to a `Writable` but it is a **non-mutable observable**\n\n### Example:\n\n```ts\nimport { readable } from \"@b2chatorg/chat-center-widget-sdk/dist/utils/store\";\n\nconst ticktock = readable(\"tick\", (set, update) => {\n  const interval = setInterval(() => {\n    update((sound) => (sound == \"tick\" ? \"tock\" : \"tick\"));\n  }, 1000);\n\n  return () => clearInterval(interval);\n});\n\nconst unsub = ticktock.subscribe((value) => console.log(value)); // logs 'tick' or 'tock' each seg\n\nunsub(); // unobserve tictock and stop ticktock\n```\n\n# React Hook `UseAsyncFunction`\n\n```ts\nconst useAsyncFunction = <\n  Fn extends (...args: any[]) => Promise<any>,\n  E = Error\n>(\n  fn: Fn,\n  initialResult?: Awaited<ReturnType<Fn>>\n) => UseAsyncFunctionInstance<Fn, E>;\n\ntype UseAsyncFunctionInstance<\n  Fn extends (...args: any[]) => Promise<any>,\n  E = unknown\n> = {\n  args: Parameters<Fn> | [];\n  result: Awaited<ReturnType<Fn>>;\n  error: E;\n  isPending: boolean;\n  isSuccess: true;\n  isError: false;\n};\n```\n\nThis is a React hook to manage async calls, it takes a async `fn` and optionally an `initialResult` to use as initial value for result prop\n\n### Usage\n\n```tsx\nimport useAsyncFunction from \"@b2chatorg/chat-center-widget-sdk/dist/react/useAsyncFunction\";\n\nconst doLogin = async (user: string) => {\n  await new Promise(r => setTimeout(r, 2000)); // wait 2 seg\n\n  if (user === \"david\") return { user };\n\n  throw new Error(\"Unknown user\");\n};\n\nconst App = () => {\n  const login = useAsyncFunction(doLogin);\n\n  useEffect(() => {\n    login('david')\n  }, [])\n\n  return (\n    <div>\n      {login.isPending & \"loading...\"}\n      {login.isSuccess && (<div>Login success: {login.result.user}<div>)}\n      {login.isError && (<div>Login failed: {login.error.message}<div>)}\n    </div>\n  );\n};\n\n```\n\n</br>\n\n# B2ChatStore\n\n**B2ChatStore** is simply a set of _properties_, _events_ and _methods_ that allow subscribe, listen or take actions inside the B2Chat console. It is agnostic to any **UI** library but there are some pretty easy utils to work with React.\n\n**JS** vanilla\n\n```ts\nimport { getB2ChatStore } from \"@b2chatorg/chat-center-widget-sdk\";\n\n/// get b2chat store instance\nconst store = getB2ChatStore();\n\n// subscribe to new changes\nconst unsub = store.state.activeChat.subscribe((chat) => {\n  console.log(chat);\n});\n\n// stop receive changes\nunsub();\n\nconst result = await store.methods.findChat({ contactName: \"foo\" }); // find a chat in the current tray\n```\n\nWith **React** library\n\n```tsx\nimport { useEffect, useState } from \"react\";\nimport { useB2ChatStore } from \"@b2chatorg/chat-center-widget-sdk/dist/react\";\n\nconst App = () => {\n  const { state } = useB2ChatStore();\n\n  useEffect(() => { // subscribe to new changes\n    console.log(state.activeChat);\n  }, [state.activeChat]);\n\n  return (\n    <div>{state.activeChat.chatId}<div>\n  );\n};\n```\n\n# Properties\n\n## `activeChat: Readable<Chat>`\n\nIt contains the Chat actually selected by the agent.\n\n### Example\n\n```tsx\nconst { state } = getB2ChatStore();\nstate.activeChat.subscribe((activeChat) => {\n  console.log(activeChat.chatId);\n});\n\n// or with React\nconst App = () => {\n  const { state } = useB2ChatStore();\n  return <div>{state.activeChat.chatId}</div>;\n};\n```\n\n## `agentInfo: Readable<AgentInfo>`\n\nIt has the basic information about the agent and the departments which it belongs.\nIf you want to search for an specific chat use : [findChat](#findChat:%20)\n\n### Example\n\n```tsx\nconst { state } = getB2ChatStore();\nstate.agentInfo.subscribe((agentInfo) => {\n  console.log(agentInfo.username);\n});\n\n// or with React\nconst App = () => {\n  const { state } = useB2ChatStore();\n  return <div>{state.agentInfo.username}</div>;\n};\n```\n\n## `departments: Readable<Department[]>`\n\nIt has the list the all posible departments for this merchant\n\n### Example\n\n```tsx\nconst { state } = getB2ChatStore();\nstate.departments.subscribe((departments) => {\n  departments.forEach((item) => console.log(item.tagName));\n});\n\n// or with React\nconst App = () => {\n  const { state } = useB2ChatStore();\n  return (\n    <>\n      {state.departments.map((item) => (\n        <div>{item.tagName}</div>\n      ))}\n    </>\n  );\n};\n```\n\n## `inputMessageContent: InputMessageContent`\n\nIt has the console input message. See [setInputMessageContent]() to modify its value\n\n### Example\n\n```tsx\nconst { state } = getB2ChatStore();\nstate.inputMessageContent.subscribe((content) => {\n  console.log(content.chatId, content.text);\n});\n\n// or with React\nconst App = () => {\n  const { state } = useB2ChatStore();\n  return <div>{state.inputMessageContent.text}</div>;\n};\n```\n\n<br>\n\n# Events\n\n## `onChatClosed: Emitter`\n\nevent emitted when a chat is closed wether by agent or contact\n\n# Methods\n\n## `findChat: (query: FindChatQuery) => Promise<FindChatResponse>`\n\nFind a chat by name, chatId or tags.\n\n> The query can be omitted to traverse through all chats\n\n```ts\nconst { methods } = getB2ChatStore();\nconst response = await findChat({ contactName: \"jean\", limit: 10 });\nconsole.log(response.data);\n```\n\n## Types\n\nAll types related to B2Chat are available at:\n\n```ts\nimport {...} from \"@b2chatorg/chat-center-widget-sdk/dist/types\";\n```\n\nPlease take a look to all types.\n","readmeFilename":"README.md"}