@memori.ai/memori-react 7.14.0 → 7.14.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [7.14.1](https://github.com/memori-ai/memori-react/compare/v7.14.0...v7.14.1) (2025-01-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* update Avatar component props in TotemLayout to include chatProps ([04c9737](https://github.com/memori-ai/memori-react/commit/04c97374bbb3af9b7c824f153d040242f1db6ddc))
|
|
9
|
+
|
|
3
10
|
## [7.14.0](https://github.com/memori-ai/memori-react/compare/v7.13.4...v7.14.0) (2025-01-16)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const Spin_1 = tslib_1.__importDefault(require("../ui/Spin"));
|
|
6
|
-
const TotemLayout = ({ Header, headerProps, Avatar, avatarProps, Chat, chatProps, StartPanel, startPanelProps, integrationStyle, integrationBackground, sessionId, hasUserActivatedSpeak, loading = false, poweredBy, }) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [integrationStyle, integrationBackground, (0, jsx_runtime_1.jsxs)(Spin_1.default, { spinning: loading, className: "memori-totem-layout", children: [poweredBy, (0, jsx_runtime_1.jsx)("div", { className: "memori-totem-layout--header", children: Header && headerProps && (0, jsx_runtime_1.jsx)(Header, { ...headerProps }) }), (0, jsx_runtime_1.jsx)("div", { className: "memori-totem-layout--avatar", children: Avatar && avatarProps && (0, jsx_runtime_1.jsx)(Avatar, { ...avatarProps, isTotem: true }) }), (0, jsx_runtime_1.jsx)("div", { id: "extension" }), (0, jsx_runtime_1.jsx)("div", { className: "memori-totem-layout--controls", children: sessionId && hasUserActivatedSpeak && Chat && chatProps ? ((0, jsx_runtime_1.jsx)(Chat, { ...chatProps })) : startPanelProps ? ((0, jsx_runtime_1.jsx)(StartPanel, { ...startPanelProps })) : null })] })] }));
|
|
6
|
+
const TotemLayout = ({ Header, headerProps, Avatar, avatarProps, Chat, chatProps, StartPanel, startPanelProps, integrationStyle, integrationBackground, sessionId, hasUserActivatedSpeak, loading = false, poweredBy, }) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [integrationStyle, integrationBackground, (0, jsx_runtime_1.jsxs)(Spin_1.default, { spinning: loading, className: "memori-totem-layout", children: [poweredBy, (0, jsx_runtime_1.jsx)("div", { className: "memori-totem-layout--header", children: Header && headerProps && (0, jsx_runtime_1.jsx)(Header, { ...headerProps }) }), (0, jsx_runtime_1.jsx)("div", { className: "memori-totem-layout--avatar", children: Avatar && avatarProps && (0, jsx_runtime_1.jsx)(Avatar, { chatProps: chatProps, ...avatarProps, isTotem: true }) }), (0, jsx_runtime_1.jsx)("div", { id: "extension" }), (0, jsx_runtime_1.jsx)("div", { className: "memori-totem-layout--controls", children: sessionId && hasUserActivatedSpeak && Chat && chatProps ? ((0, jsx_runtime_1.jsx)(Chat, { ...chatProps })) : startPanelProps ? ((0, jsx_runtime_1.jsx)(StartPanel, { ...startPanelProps })) : null })] })] }));
|
|
7
7
|
exports.default = TotemLayout;
|
|
8
8
|
//# sourceMappingURL=Totem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Totem.js","sourceRoot":"","sources":["../../../src/components/layouts/Totem.tsx"],"names":[],"mappings":";;;;AACA,8DAA8B;AAG9B,MAAM,WAAW,GAA0B,CAAC,EAC1C,MAAM,EACN,WAAW,EACX,MAAM,EACN,WAAW,EACX,IAAI,EACJ,SAAS,EACT,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,SAAS,EACT,qBAAqB,EACrB,OAAO,GAAG,K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,eAAe,CAAC,CAAC,CAAC,CACpB,uBAAC,UAAU,OAAK,eAAe,GAAI,CACpC,CAAC,CAAC,CAAC,IAAI,GACJ,IACD,IACN,CACJ,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import Spin from '../ui/Spin';
|
|
3
|
-
const TotemLayout = ({ Header, headerProps, Avatar, avatarProps, Chat, chatProps, StartPanel, startPanelProps, integrationStyle, integrationBackground, sessionId, hasUserActivatedSpeak, loading = false, poweredBy, }) => (_jsxs(_Fragment, { children: [integrationStyle, integrationBackground, _jsxs(Spin, { spinning: loading, className: "memori-totem-layout", children: [poweredBy, _jsx("div", { className: "memori-totem-layout--header", children: Header && headerProps && _jsx(Header, { ...headerProps }) }), _jsx("div", { className: "memori-totem-layout--avatar", children: Avatar && avatarProps && _jsx(Avatar, { ...avatarProps, isTotem: true }) }), _jsx("div", { id: "extension" }), _jsx("div", { className: "memori-totem-layout--controls", children: sessionId && hasUserActivatedSpeak && Chat && chatProps ? (_jsx(Chat, { ...chatProps })) : startPanelProps ? (_jsx(StartPanel, { ...startPanelProps })) : null })] })] }));
|
|
3
|
+
const TotemLayout = ({ Header, headerProps, Avatar, avatarProps, Chat, chatProps, StartPanel, startPanelProps, integrationStyle, integrationBackground, sessionId, hasUserActivatedSpeak, loading = false, poweredBy, }) => (_jsxs(_Fragment, { children: [integrationStyle, integrationBackground, _jsxs(Spin, { spinning: loading, className: "memori-totem-layout", children: [poweredBy, _jsx("div", { className: "memori-totem-layout--header", children: Header && headerProps && _jsx(Header, { ...headerProps }) }), _jsx("div", { className: "memori-totem-layout--avatar", children: Avatar && avatarProps && _jsx(Avatar, { chatProps: chatProps, ...avatarProps, isTotem: true }) }), _jsx("div", { id: "extension" }), _jsx("div", { className: "memori-totem-layout--controls", children: sessionId && hasUserActivatedSpeak && Chat && chatProps ? (_jsx(Chat, { ...chatProps })) : startPanelProps ? (_jsx(StartPanel, { ...startPanelProps })) : null })] })] }));
|
|
4
4
|
export default TotemLayout;
|
|
5
5
|
//# sourceMappingURL=Totem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Totem.js","sourceRoot":"","sources":["../../../src/components/layouts/Totem.tsx"],"names":[],"mappings":";AACA,OAAO,IAAI,MAAM,YAAY,CAAC;AAG9B,MAAM,WAAW,GAA0B,CAAC,EAC1C,MAAM,EACN,WAAW,EACX,MAAM,EACN,WAAW,EACX,IAAI,EACJ,SAAS,EACT,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,SAAS,EACT,qBAAqB,EACrB,OAAO,GAAG,KAAK,EACf,SAAS,GACV,EAAE,EAAE,CAAC,CACJ,8BACG,gBAAgB,EAChB,qBAAqB,EAEtB,MAAC,IAAI,IAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAC,qBAAqB,aACrD,SAAS,EAEV,cAAK,SAAS,EAAC,6BAA6B,YACzC,MAAM,IAAI,WAAW,IAAI,KAAC,MAAM,OAAK,WAAW,GAAI,GACjD,EAEN,cAAK,SAAS,EAAC,6BAA6B,YACzC,MAAM,IAAI,WAAW,IAAI,KAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"Totem.js","sourceRoot":"","sources":["../../../src/components/layouts/Totem.tsx"],"names":[],"mappings":";AACA,OAAO,IAAI,MAAM,YAAY,CAAC;AAG9B,MAAM,WAAW,GAA0B,CAAC,EAC1C,MAAM,EACN,WAAW,EACX,MAAM,EACN,WAAW,EACX,IAAI,EACJ,SAAS,EACT,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,SAAS,EACT,qBAAqB,EACrB,OAAO,GAAG,KAAK,EACf,SAAS,GACV,EAAE,EAAE,CAAC,CACJ,8BACG,gBAAgB,EAChB,qBAAqB,EAEtB,MAAC,IAAI,IAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAC,qBAAqB,aACrD,SAAS,EAEV,cAAK,SAAS,EAAC,6BAA6B,YACzC,MAAM,IAAI,WAAW,IAAI,KAAC,MAAM,OAAK,WAAW,GAAI,GACjD,EAEN,cAAK,SAAS,EAAC,6BAA6B,YACzC,MAAM,IAAI,WAAW,IAAI,KAAC,MAAM,IAAC,SAAS,EAAE,SAAS,KAAM,WAAW,EAAE,OAAO,SAAG,GAC/E,EAEN,cAAK,EAAE,EAAC,WAAW,GAAG,EAEtB,cAAK,SAAS,EAAC,+BAA+B,YAC3C,SAAS,IAAI,qBAAqB,IAAI,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,CACzD,KAAC,IAAI,OAAK,SAAS,GAAI,CACxB,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CACpB,KAAC,UAAU,OAAK,eAAe,GAAI,CACpC,CAAC,CAAC,CAAC,IAAI,GACJ,IACD,IACN,CACJ,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ const TotemLayout: React.FC<LayoutProps> = ({
|
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
32
|
<div className="memori-totem-layout--avatar">
|
|
33
|
-
{Avatar && avatarProps && <Avatar {...avatarProps} isTotem />}
|
|
33
|
+
{Avatar && avatarProps && <Avatar chatProps={chatProps} {...avatarProps} isTotem />}
|
|
34
34
|
</div>
|
|
35
35
|
|
|
36
36
|
<div id="extension" />
|