@promptbook/components 0.103.0 → 0.104.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/esm/index.es.js +10 -10
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +15 -0
- package/esm/typings/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +11 -2
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +10 -10
- package/umd/index.umd.js.map +1 -1
package/README.md
CHANGED
|
@@ -27,6 +27,10 @@ Turn your company's scattered knowledge into AI ready Books
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
+
<blockquote style="color: #ff8811">
|
|
31
|
+
<b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
|
|
32
|
+
</blockquote>
|
|
33
|
+
|
|
30
34
|
## 📦 Package `@promptbook/components`
|
|
31
35
|
|
|
32
36
|
- Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
|
package/esm/index.es.js
CHANGED
|
@@ -35,7 +35,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
35
35
|
* @generated
|
|
36
36
|
* @see https://github.com/webgptorg/promptbook
|
|
37
37
|
*/
|
|
38
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
38
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-0';
|
|
39
39
|
/**
|
|
40
40
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
41
41
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -17746,8 +17746,8 @@ class RemoteAgent extends Agent {
|
|
|
17746
17746
|
* TODO: !!! Agent on remote server
|
|
17747
17747
|
*/
|
|
17748
17748
|
|
|
17749
|
-
var css_248z = ".PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegration__KTAQl{bottom:20px;font-family:sans-serif;position:fixed;right:20px;z-index:10000}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationButton__beMWa{align-items:center;background-color:#007bff;border-radius:30px;box-shadow:0 4px 12px rgba(0,0,0,.15);color:#fff;cursor:pointer;display:flex;padding:10px 20px;position:relative;transition:transform .2s,box-shadow .2s}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationButton__beMWa:hover{box-shadow:0 6px 16px rgba(0,0,0,.2);transform:translateY(-2px)}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationAvatar__OrK-R{background-color:#eee;border-radius:50%;height:32px;margin-right:10px;overflow:hidden;transform:translate(-10px) scale(1.3);width:32px}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationAvatar__OrK-R img{height:100%;object-fit:cover;width:100%}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationLabel__gvgCn{font-weight:700}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatus__QBwnt{border:2px solid #fff;border-radius:50%;bottom:12px;height:12px;left:40px;position:absolute;width:12px;z-index:10}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatusConnected__w15ZJ{background-color:#57b660}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatusPending__vtVxc{background-color:#9e9e9e}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatusError__nu02u{background-color:#f44336}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegration__KTAQl.PromptbookAgentSeamlessIntegration-module_open__rt5ey .PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationButton__beMWa{display:none}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationWindow__6sxeZ{animation:PromptbookAgentSeamlessIntegration-module_promptbook-agent-slide-up__0dGVe .3s ease-out;background-color:#fff;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.2);display:flex;flex-direction:column;height:600px;max-height:80vh;overflow:hidden;width:380px}@keyframes PromptbookAgentSeamlessIntegration-module_promptbook-agent-slide-up__0dGVe{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationHeader__9ae8B{align-items:center;background-color:#007bff;color:#fff;display:flex;justify-content:space-between;padding:15px}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationHeader__9ae8B button{align-items:center!important;background:transparent!important;border:none!important;border-radius:50%!important;box-shadow:none!important;color:inherit!important;cursor:pointer;display:flex!important;height:32px!important;justify-content:center!important;margin:0 2px!important;min-width:32px!important;opacity:.8;padding:5px!important;transition:opacity .2s}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationHeader__9ae8B button:hover{background-color:hsla(0,0%,100%,.2)!important;opacity:1}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationHeader__9ae8B button span{display:none!important}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationHeader__9ae8B button svg{height:20px;width:20px}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationTitle__D6p2j{font-size:1.1em;font-weight:700}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationClose__Ot41T{font-size:1.2em}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationContent__xqAns{display:flex;flex:1;flex-direction:column;overflow-y:auto;position:relative}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationError__RaBDa,.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationLoading__OAqgE{align-items:center;color:#666;display:flex;flex:1;justify-content:center;padding:20px;text-align:center}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationError__RaBDa{color:#d32f2f}@media (max-width:480px){.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegration__KTAQl.PromptbookAgentSeamlessIntegration-module_open__rt5ey{bottom:0;left:0;right:0}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationWindow__6sxeZ{border-radius:0;height:100vh;max-height:100vh;width:100%}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlByb21wdGJvb2tBZ2VudFNlYW1sZXNzSW50ZWdyYXRpb24ubW9kdWxlLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxxRkFFSSxXQUFZLENBR1osc0JBQXVCLENBSnZCLGNBQWUsQ0FFZixVQUFXLENBQ1gsYUFFSixDQUVBLDJGQUVJLGtCQUFtQixDQUNuQix3QkFBeUIsQ0FFekIsa0JBQW1CLENBR25CLHFDQUEwQyxDQUoxQyxVQUFZLENBR1osY0FBZSxDQU5mLFlBQWEsQ0FLYixpQkFBa0IsQ0FJbEIsaUJBQWtCLENBRGxCLHVDQUVKLENBRUEsaUdBRUksb0NBQXlDLENBRHpDLDBCQUVKLENBRUEsMkZBTUkscUJBQXNCLENBSHRCLGlCQUFrQixDQURsQixXQUFZLENBR1osaUJBQWtCLENBRGxCLGVBQWdCLENBSWhCLHFDQUF5QyxDQVB6QyxVQVFKLENBRUEsK0ZBRUksV0FBWSxDQUNaLGdCQUFpQixDQUZqQixVQUdKLENBRUEsMEZBQ0ksZUFDSixDQUVBLDJGQUtJLHFCQUF1QixDQUR2QixpQkFBa0IsQ0FHbEIsV0FBWSxDQUpaLFdBQVksQ0FHWixTQUFVLENBTFYsaUJBQWtCLENBQ2xCLFVBQVcsQ0FNWCxVQUNKLENBRUEsb0dBQ0ksd0JBQ0osQ0FFQSxrR0FDSSx3QkFDSixDQUVBLGdHQUNJLHdCQUNKLENBUUEsc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0aXZlO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbn1cblxuLlByb21wdGJvb2tBZ2VudFNlYW1sZXNzSW50ZWdyYXRpb25Mb2FkaW5nLFxuLlByb21wdGJvb2tBZ2VudFNlYW1sZXNzSW50ZWdyYXRpb25FcnJvciB7XG4gICAgZmxleDogMTtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAgcGFkZGluZzogMjBweDtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgY29sb3I6ICM2NjY7XG59XG5cbi5Qcm9tcHRib29rQWdlbnRTZWFtbGVzc0ludGVncmF0aW9uRXJyb3Ige1xuICAgIGNvbG9yOiAjZDMyZjJmO1xufVxuXG5AbWVkaWEgKG1heC13aWR0aDogNDgwcHgpIHtcbiAgICAuUHJvbXB0Ym9va0FnZW50U2VhbWxlc3NJbnRlZ3JhdGlvbi5vcGVuIHtcbiAgICAgICAgYm90dG9tOiAwO1xuICAgICAgICByaWdodDogMDtcbiAgICAgICAgbGVmdDogMDtcbiAgICB9XG5cbiAgICAuUHJvbXB0Ym9va0FnZW50U2VhbWxlc3NJbnRlZ3JhdGlvbldpbmRvdyB7XG4gICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICBoZWlnaHQ6IDEwMHZoO1xuICAgICAgICBtYXgtaGVpZ2h0OiAxMDB2aDtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogMDtcbiAgICB9XG59XG4iXX0= */";
|
|
17750
|
-
var styles = {"PromptbookAgentSeamlessIntegration":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegration__KTAQl","PromptbookAgentSeamlessIntegrationButton":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationButton__beMWa","PromptbookAgentSeamlessIntegrationAvatar":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationAvatar__OrK-R","PromptbookAgentSeamlessIntegrationLabel":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationLabel__gvgCn","PromptbookAgentSeamlessIntegrationStatus":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatus__QBwnt","PromptbookAgentSeamlessIntegrationStatusConnected":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatusConnected__w15ZJ","PromptbookAgentSeamlessIntegrationStatusPending":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatusPending__vtVxc","PromptbookAgentSeamlessIntegrationStatusError":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatusError__nu02u","open":"PromptbookAgentSeamlessIntegration-module_open__rt5ey","closed":"PromptbookAgentSeamlessIntegration-module_closed__VPHQ-","PromptbookAgentSeamlessIntegrationWindow":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationWindow__6sxeZ","promptbook-agent-slide-up":"PromptbookAgentSeamlessIntegration-module_promptbook-agent-slide-up__0dGVe","PromptbookAgentSeamlessIntegrationHeader":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationHeader__9ae8B","PromptbookAgentSeamlessIntegrationTitle":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationTitle__D6p2j","PromptbookAgentSeamlessIntegrationClose":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationClose__Ot41T","PromptbookAgentSeamlessIntegrationContent":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationContent__xqAns","PromptbookAgentSeamlessIntegrationLoading":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationLoading__OAqgE","PromptbookAgentSeamlessIntegrationError":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationError__RaBDa"};
|
|
17749
|
+
var css_248z = ".PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegration__KTAQl{bottom:20px;font-family:sans-serif;position:fixed;right:20px;z-index:10000}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationButton__beMWa{align-items:center;background-color:#007bff;border-radius:30px;box-shadow:0 4px 12px rgba(0,0,0,.15);color:#fff;cursor:pointer;display:flex;padding:10px 20px;position:relative;transition:transform .2s,box-shadow .2s}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationButton__beMWa:hover{box-shadow:0 6px 16px rgba(0,0,0,.2);transform:translateY(-2px)}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationAvatar__OrK-R{background-color:#eee;border-radius:50%;height:32px;margin-right:10px;overflow:hidden;transform:translate(-10px) scale(1.3);width:32px}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationAvatar__OrK-R img{height:100%;object-fit:cover;width:100%}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationLabel__gvgCn{font-weight:700}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatus__QBwnt{border:2px solid #fff;border-radius:50%;bottom:12px;height:12px;left:40px;position:absolute;width:12px;z-index:10}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatusConnected__w15ZJ{background-color:#57b660}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatusPending__vtVxc{background-color:#9e9e9e}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatusError__nu02u{background-color:#f44336}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegration__KTAQl.PromptbookAgentSeamlessIntegration-module_open__rt5ey .PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationButton__beMWa{display:none}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationWindow__6sxeZ{animation:PromptbookAgentSeamlessIntegration-module_promptbook-agent-slide-up__0dGVe .3s ease-out;background-color:#fff;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.2);display:flex;flex-direction:column;height:600px;max-height:80vh;overflow:hidden;width:380px}@keyframes PromptbookAgentSeamlessIntegration-module_promptbook-agent-slide-up__0dGVe{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationHeader__9ae8B{align-items:center;background-color:#007bff;color:#fff;display:flex;justify-content:space-between;padding:15px}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationHeader__9ae8B button{align-items:center!important;background:transparent!important;border:none!important;border-radius:50%!important;box-shadow:none!important;color:inherit!important;cursor:pointer;display:flex!important;height:32px!important;justify-content:center!important;margin:0 2px!important;min-width:32px!important;opacity:.8;padding:5px!important;transition:opacity .2s}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationHeader__9ae8B button:hover{background-color:hsla(0,0%,100%,.2)!important;opacity:1}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationHeader__9ae8B button span{display:none!important}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationHeader__9ae8B button svg{height:20px;width:20px}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationTitle__D6p2j{font-size:1.1em;font-weight:700}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationClose__Ot41T{font-size:1.2em}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationContent__xqAns{display:flex;flex:1;flex-direction:column;overflow-y:auto;position:relative}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationError__RaBDa,.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationLoading__OAqgE{align-items:center;color:#666;display:flex;flex:1;justify-content:center;padding:20px;text-align:center}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationError__RaBDa{color:#d32f2f}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationIframe__KX5iC{border:none;flex:1;height:100%;width:100%}@media (max-width:480px){.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegration__KTAQl.PromptbookAgentSeamlessIntegration-module_open__rt5ey{bottom:0;left:0;right:0}.PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationWindow__6sxeZ{border-radius:0;height:100vh;max-height:100vh;width:100%}}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlByb21wdGJvb2tBZ2VudFNlYW1sZXNzSW50ZWdyYXRpb24ubW9kdWxlLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxxRkFFSSxXQUFZLENBR1osc0JBQXVCLENBSnZCLGNBQWUsQ0FFZixVQUFXLENBQ1gsYUFFSixDQUVBLDJGQUVJLGtCQUFtQixDQUNuQix3QkFBeUIsQ0FFekIsa0JBQW1CLENBR25CLHFDQUEwQyxDQUoxQyxVQUFZLENBR1osY0FBZSxDQU5mLFlBQWEsQ0FLYixpQkFBa0IsQ0FJbEIsaUJBQWtCLENBRGxCLHVDQUVKLENBRUEsaUdBRUksb0NBQXlDLENBRHpDLDBCQUVKLENBRUEsMkZBTUkscUJBQXNCLENBSHRCLGlCQUFrQixDQURsQixXQUFZLENBR1osaUJBQWtCLENBRGxCLGVBQWdCLENBSWhCLHFDQUF5QyxDQVB6QyxVQVFKLENBRUEsK0ZBRUksV0FBWSxDQUNaLGdCQUFpQixDQUZqQixVQUdKLENBRUEsMEZBQ0ksZUFDSixDQUVBLDJGQUtJLHFCQUF1QixDQUR2QixpQkFBa0IsQ0FHbEIsV0FBWSxDQUpaLFdBQVksQ0FHWixTQUFVLENBTFYsaUJBQWtCLENBQ2xCLFVBQVcsQ0FNWCxVQUNKLENBRUEsb0dBQ0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MDB2aDtcbiAgICAgICAgbWF4LWhlaWdodDogMTAwdmg7XG4gICAgICAgIGJvcmRlci1yYWRpdXM6IDA7XG4gICAgfVxufVxuIl19 */";
|
|
17750
|
+
var styles = {"PromptbookAgentSeamlessIntegration":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegration__KTAQl","PromptbookAgentSeamlessIntegrationButton":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationButton__beMWa","PromptbookAgentSeamlessIntegrationAvatar":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationAvatar__OrK-R","PromptbookAgentSeamlessIntegrationLabel":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationLabel__gvgCn","PromptbookAgentSeamlessIntegrationStatus":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatus__QBwnt","PromptbookAgentSeamlessIntegrationStatusConnected":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatusConnected__w15ZJ","PromptbookAgentSeamlessIntegrationStatusPending":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatusPending__vtVxc","PromptbookAgentSeamlessIntegrationStatusError":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationStatusError__nu02u","open":"PromptbookAgentSeamlessIntegration-module_open__rt5ey","closed":"PromptbookAgentSeamlessIntegration-module_closed__VPHQ-","PromptbookAgentSeamlessIntegrationWindow":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationWindow__6sxeZ","promptbook-agent-slide-up":"PromptbookAgentSeamlessIntegration-module_promptbook-agent-slide-up__0dGVe","PromptbookAgentSeamlessIntegrationHeader":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationHeader__9ae8B","PromptbookAgentSeamlessIntegrationTitle":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationTitle__D6p2j","PromptbookAgentSeamlessIntegrationClose":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationClose__Ot41T","PromptbookAgentSeamlessIntegrationContent":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationContent__xqAns","PromptbookAgentSeamlessIntegrationLoading":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationLoading__OAqgE","PromptbookAgentSeamlessIntegrationError":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationError__RaBDa","PromptbookAgentSeamlessIntegrationIframe":"PromptbookAgentSeamlessIntegration-module_PromptbookAgentSeamlessIntegrationIframe__KX5iC"};
|
|
17751
17751
|
styleInject(css_248z);
|
|
17752
17752
|
|
|
17753
17753
|
/**
|
|
@@ -17757,7 +17757,7 @@ styleInject(css_248z);
|
|
|
17757
17757
|
*/
|
|
17758
17758
|
function PromptbookAgentSeamlessIntegration(props) {
|
|
17759
17759
|
var _a, _b;
|
|
17760
|
-
const { agentUrl, meta, onOpenChange, className, style } = props;
|
|
17760
|
+
const { agentUrl, meta, onOpenChange, className, style, isFocusedOnLoad, isIframeUsed = false } = props;
|
|
17761
17761
|
const [isOpen, setIsOpen] = useState(false);
|
|
17762
17762
|
const [headerElement, setHeaderElement] = useState(null);
|
|
17763
17763
|
useEffect(() => {
|
|
@@ -17819,7 +17819,7 @@ function PromptbookAgentSeamlessIntegration(props) {
|
|
|
17819
17819
|
? styles.PromptbookAgentSeamlessIntegrationStatusConnected
|
|
17820
17820
|
: connectionStatus === 'error'
|
|
17821
17821
|
? styles.PromptbookAgentSeamlessIntegrationStatusError
|
|
17822
|
-
: styles.PromptbookAgentSeamlessIntegrationStatusPending}` }), jsx("div", { className: styles.PromptbookAgentSeamlessIntegrationLabel, children: "CHAT" })] }), isOpen && (jsxs("div", { className: styles.PromptbookAgentSeamlessIntegrationWindow, children: [jsx("div", { className: styles.PromptbookAgentSeamlessIntegrationHeader, style: { backgroundColor: color }, ref: setHeaderElement, children: jsx("div", { className: styles.PromptbookAgentSeamlessIntegrationTitle, children: (agent === null || agent === void 0 ? void 0 : agent.meta.fullname) || (meta === null || meta === void 0 ? void 0 : meta.fullname) || (agent === null || agent === void 0 ? void 0 : agent.agentName) || 'Chat with Agent' }) }), jsx("div", { className: styles.PromptbookAgentSeamlessIntegrationContent, children: agent ? (jsx(AgentChat, { agent: agent, actionsContainer: headerElement, extraActions: jsx("button", { className: styles.PromptbookAgentSeamlessIntegrationClose, onClick: () => setIsOpen(false), title: "Close", children: jsx(CloseIcon, {}) }) })) : error ? (jsxs("div", { className: styles.PromptbookAgentSeamlessIntegrationError, children: ["Failed to connect to agent: ", error.message] })) : (jsx("div", { className: styles.PromptbookAgentSeamlessIntegrationLoading, children: "Connecting to agent..." })) })] }))] }));
|
|
17822
|
+
: styles.PromptbookAgentSeamlessIntegrationStatusPending}` }), jsx("div", { className: styles.PromptbookAgentSeamlessIntegrationLabel, children: "CHAT" })] }), isOpen && (jsxs("div", { className: styles.PromptbookAgentSeamlessIntegrationWindow, children: [jsx("div", { className: styles.PromptbookAgentSeamlessIntegrationHeader, style: { backgroundColor: color }, ref: setHeaderElement, children: jsx("div", { className: styles.PromptbookAgentSeamlessIntegrationTitle, children: (agent === null || agent === void 0 ? void 0 : agent.meta.fullname) || (meta === null || meta === void 0 ? void 0 : meta.fullname) || (agent === null || agent === void 0 ? void 0 : agent.agentName) || 'Chat with Agent' }) }), jsx("div", { className: styles.PromptbookAgentSeamlessIntegrationContent, children: isIframeUsed ? (jsx("iframe", { src: agentUrl + '/chat?headless', className: styles.PromptbookAgentSeamlessIntegrationIframe, tabIndex: -1 })) : agent ? (jsx(AgentChat, { agent: agent, actionsContainer: headerElement, isFocusedOnLoad: isFocusedOnLoad, extraActions: jsx("button", { className: styles.PromptbookAgentSeamlessIntegrationClose, onClick: () => setIsOpen(false), title: "Close", children: jsx(CloseIcon, {}) }) })) : error ? (jsxs("div", { className: styles.PromptbookAgentSeamlessIntegrationError, children: ["Failed to connect to agent: ", error.message] })) : (jsx("div", { className: styles.PromptbookAgentSeamlessIntegrationLoading, children: "Connecting to agent..." })) })] }))] }));
|
|
17823
17823
|
}
|
|
17824
17824
|
|
|
17825
17825
|
/**
|
|
@@ -17828,19 +17828,19 @@ function PromptbookAgentSeamlessIntegration(props) {
|
|
|
17828
17828
|
* @public exported from `@promptbook/components`
|
|
17829
17829
|
*/
|
|
17830
17830
|
function PromptbookAgentIntegration(props) {
|
|
17831
|
-
const { agentUrl, formfactor = 'seamless', meta, onOpenChange, className, style } = props;
|
|
17831
|
+
const { agentUrl, formfactor = 'seamless', meta, onOpenChange, className, style, isFocusedOnLoad = false, isIframeUsed = true, } = props;
|
|
17832
17832
|
if (just(false)) ;
|
|
17833
17833
|
else if (formfactor === 'seamless') {
|
|
17834
|
-
return jsx(PromptbookAgentSeamlessIntegration, { agentUrl, meta, onOpenChange, className, style });
|
|
17834
|
+
return (jsx(PromptbookAgentSeamlessIntegration, { agentUrl, meta, onOpenChange, className, style, isFocusedOnLoad, isIframeUsed }));
|
|
17835
17835
|
}
|
|
17836
17836
|
else if (formfactor === 'book') {
|
|
17837
|
-
return jsx("iframe", { src: agentUrl + '/book?headless', className: className, style: style });
|
|
17837
|
+
return jsx("iframe", { src: agentUrl + '/book?headless', className: className, style: style, tabIndex: -1 });
|
|
17838
17838
|
}
|
|
17839
17839
|
else if (formfactor === 'chat') {
|
|
17840
|
-
return jsx("iframe", { src: agentUrl + '/chat?headless', className: className, style: style });
|
|
17840
|
+
return jsx("iframe", { src: agentUrl + '/chat?headless', className: className, style: style, tabIndex: -1 });
|
|
17841
17841
|
}
|
|
17842
17842
|
else if (formfactor === 'profile') {
|
|
17843
|
-
return jsx("iframe", { src: agentUrl + '?headless', className: className, style: style });
|
|
17843
|
+
return jsx("iframe", { src: agentUrl + '?headless', className: className, style: style, tabIndex: -1 });
|
|
17844
17844
|
}
|
|
17845
17845
|
else {
|
|
17846
17846
|
throw new Error(`PromptbookAgentIntegration: Unsupported formfactor "${formfactor}"`);
|