@promptbook/components 0.101.0-10 → 0.101.0-12
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 +10 -2
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +10 -2
- package/umd/index.umd.js.map +1 -1
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.101.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.101.0-11`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* @generated
|
|
23
23
|
* @see https://github.com/webgptorg/promptbook
|
|
24
24
|
*/
|
|
25
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-
|
|
25
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-12';
|
|
26
26
|
/**
|
|
27
27
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
28
28
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -4128,6 +4128,8 @@
|
|
|
4128
4128
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
4129
4129
|
*/
|
|
4130
4130
|
|
|
4131
|
+
// [🚉] Avatar dimensions constant to prevent layout jumps and maintain DRY principle
|
|
4132
|
+
const AVATAR_SIZE = 40;
|
|
4131
4133
|
/**
|
|
4132
4134
|
* Renders a chat with messages and input for new messages
|
|
4133
4135
|
*
|
|
@@ -4373,8 +4375,14 @@
|
|
|
4373
4375
|
console.info('participant avatarSrc', avatarSrc);
|
|
4374
4376
|
console.info('participant color', { color, colorOfText });
|
|
4375
4377
|
console.groupEnd();
|
|
4376
|
-
}, children: [avatarSrc && (jsxRuntime.jsx("div", { className: styles$1.avatar, children: jsxRuntime.jsx("img", { width:
|
|
4378
|
+
}, children: [avatarSrc && (jsxRuntime.jsx("div", { className: styles$1.avatar, children: jsxRuntime.jsx("img", { width: AVATAR_SIZE, height: AVATAR_SIZE, src: avatarSrc, alt: `Avatar of ${message.from.toLocaleLowerCase()}`, style: {
|
|
4377
4379
|
backgroundColor: color.toHex(),
|
|
4380
|
+
width: AVATAR_SIZE,
|
|
4381
|
+
height: AVATAR_SIZE,
|
|
4382
|
+
borderRadius: '50%',
|
|
4383
|
+
objectFit: 'cover',
|
|
4384
|
+
border: '2px solid rgba(125, 125, 125, 0.1)',
|
|
4385
|
+
flexShrink: 0,
|
|
4378
4386
|
} }) })), jsxRuntime.jsxs("div", { className: styles$1.messageText, style: {
|
|
4379
4387
|
backgroundColor: color.toHex(),
|
|
4380
4388
|
color: colorOfText.toHex(),
|