@promptbook/components 0.111.0-2 → 0.111.0-3
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/esm/index.es.js
CHANGED
|
@@ -42,7 +42,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
42
42
|
* @generated
|
|
43
43
|
* @see https://github.com/webgptorg/promptbook
|
|
44
44
|
*/
|
|
45
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.111.0-
|
|
45
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.111.0-3';
|
|
46
46
|
/**
|
|
47
47
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
48
48
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -28720,7 +28720,7 @@ function ImagePromptRenderer({ alt, prompt }) {
|
|
|
28720
28720
|
: status === 'error'
|
|
28721
28721
|
? 'Failed to generate image'
|
|
28722
28722
|
: 'Image generated';
|
|
28723
|
-
return (jsxs("div", { className: styles$5.imagePrompt, "aria-live": "polite", children: [jsxs("div", { className: styles$5.imagePromptPreview, children: [status === 'success' && imageUrl ? (jsx("img", { src: imageUrl, alt: alt, className: styles$5.imagePromptImage })) : (jsx("div", { className: styles$5.imagePromptPlaceholder, children: jsx("div", { className: styles$5.imagePromptSpinner }) })), status === 'error' && error &&
|
|
28723
|
+
return (jsxs("div", { className: styles$5.imagePrompt, "aria-live": "polite", children: [jsxs("div", { className: styles$5.imagePromptPreview, children: [status === 'success' && imageUrl ? (jsx("img", { src: imageUrl, alt: alt, className: styles$5.imagePromptImage })) : (jsx("div", { className: styles$5.imagePromptPlaceholder, children: jsx("div", { className: styles$5.imagePromptSpinner }) })), status === 'error' && error && jsx("div", { className: styles$5.imagePromptError, children: error })] }), jsxs("div", { className: styles$5.imagePromptMeta, children: [jsx("span", { className: styles$5.imagePromptPrompt, children: trimmedPrompt || 'Generated image' }), jsx("span", { className: styles$5.imagePromptStatus, children: statusLabel })] })] }));
|
|
28724
28724
|
}
|
|
28725
28725
|
|
|
28726
28726
|
var css_248z$1 = ".ChatMessageMap-module_mapContainer__OBOgP{background:rgba(15,23,36,.9);border:1px solid hsla(0,0%,100%,.12);border-radius:16px;box-shadow:0 10px 40px rgba(0,0,0,.25);height:200px;margin:12px 0;min-height:200px;overflow:hidden;width:100%}.ChatMessageMap-module_mapSurface__E713z{height:100%;width:100%}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNoYXRNZXNzYWdlTWFwLm1vZHVsZS5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsMkNBSUksNEJBQWlDLENBRGpDLG9DQUEyQyxDQUQzQyxrQkFBbUIsQ0FPbkIsc0NBQTJDLENBRjNDLFlBQWEsQ0FDYixhQUFjLENBRmQsZ0JBQWlCLENBRGpCLGVBQWdCLENBSmhCLFVBU0osQ0FFQSx5Q0FFSSxXQUFZLENBRFosVUFFSiIsImZpbGUiOiJDaGF0TWVzc2FnZU1hcC5tb2R1bGUuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm1hcENvbnRhaW5lciB7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgYm9yZGVyLXJhZGl1czogMTZweDtcbiAgICBib3JkZXI6IDFweCBzb2xpZCByZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMTIpO1xuICAgIGJhY2tncm91bmQ6IHJnYmEoMTUsIDIzLCAzNiwgMC45KTtcbiAgICBvdmVyZmxvdzogaGlkZGVuO1xuICAgIG1pbi1oZWlnaHQ6IDIwMHB4O1xuICAgIGhlaWdodDogMjAwcHg7XG4gICAgbWFyZ2luOiAxMnB4IDA7XG4gICAgYm94LXNoYWRvdzogMCAxMHB4IDQwcHggcmdiYSgwLCAwLCAwLCAwLjI1KTtcbn1cblxuLm1hcFN1cmZhY2Uge1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIGhlaWdodDogMTAwJTtcbn1cbiJdfQ== */";
|