@memori.ai/memori-react 8.30.0 → 8.30.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 +7 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/package.json +3 -4
- package/src/version.ts +1 -1
- package/dist/components/DrawerFooter/DrawerFooter.css +0 -62
- package/dist/components/DrawerFooter/DrawerFooter.d.ts +0 -12
- package/dist/components/DrawerFooter/DrawerFooter.js +0 -10
- package/dist/components/DrawerFooter/DrawerFooter.js.map +0 -1
- package/dist/components/layouts/fullpage.css +0 -117
- package/dist/helpers/userMessage.d.ts +0 -2
- package/dist/helpers/userMessage.js +0 -23
- package/dist/helpers/userMessage.js.map +0 -1
- package/dist/icons/FacebookIcon.d.ts +0 -3
- package/dist/icons/FacebookIcon.js +0 -6
- package/dist/icons/FacebookIcon.js.map +0 -1
- package/dist/icons/LinkedinIcon.d.ts +0 -3
- package/dist/icons/LinkedinIcon.js +0 -6
- package/dist/icons/LinkedinIcon.js.map +0 -1
- package/dist/icons/TelegramIcon.d.ts +0 -3
- package/dist/icons/TelegramIcon.js +0 -6
- package/dist/icons/TelegramIcon.js.map +0 -1
- package/dist/icons/TwitterIcon.d.ts +0 -3
- package/dist/icons/TwitterIcon.js +0 -6
- package/dist/icons/TwitterIcon.js.map +0 -1
- package/dist/icons/WhatsappIcon.d.ts +0 -3
- package/dist/icons/WhatsappIcon.js +0 -6
- package/dist/icons/WhatsappIcon.js.map +0 -1
- package/dist/testUtils.d.ts +0 -5
- package/dist/testUtils.js +0 -18
- package/dist/testUtils.js.map +0 -1
- package/esm/components/DrawerFooter/DrawerFooter.css +0 -62
- package/esm/components/DrawerFooter/DrawerFooter.d.ts +0 -12
- package/esm/components/DrawerFooter/DrawerFooter.js +0 -8
- package/esm/components/DrawerFooter/DrawerFooter.js.map +0 -1
- package/esm/components/layouts/fullpage.css +0 -117
- package/esm/helpers/userMessage.d.ts +0 -2
- package/esm/helpers/userMessage.js +0 -18
- package/esm/helpers/userMessage.js.map +0 -1
- package/esm/icons/FacebookIcon.d.ts +0 -3
- package/esm/icons/FacebookIcon.js +0 -4
- package/esm/icons/FacebookIcon.js.map +0 -1
- package/esm/icons/LinkedinIcon.d.ts +0 -3
- package/esm/icons/LinkedinIcon.js +0 -4
- package/esm/icons/LinkedinIcon.js.map +0 -1
- package/esm/icons/TelegramIcon.d.ts +0 -3
- package/esm/icons/TelegramIcon.js +0 -4
- package/esm/icons/TelegramIcon.js.map +0 -1
- package/esm/icons/TwitterIcon.d.ts +0 -3
- package/esm/icons/TwitterIcon.js +0 -4
- package/esm/icons/TwitterIcon.js.map +0 -1
- package/esm/icons/WhatsappIcon.d.ts +0 -3
- package/esm/icons/WhatsappIcon.js +0 -4
- package/esm/icons/WhatsappIcon.js.map +0 -1
- package/esm/testUtils.d.ts +0 -5
- package/esm/testUtils.js +0 -15
- package/esm/testUtils.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [8.30.1](https://github.com/memori-ai/memori-react/compare/v8.30.0...v8.30.1) (2026-04-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Maintenance
|
|
7
|
+
|
|
8
|
+
* update deps following npm audit ([5f6c878](https://github.com/memori-ai/memori-react/commit/5f6c8787c8f986fbe4eff64dec766b31cad4dd5c))
|
|
9
|
+
|
|
3
10
|
## [8.30.0](https://github.com/memori-ai/memori-react/compare/v8.29.1...v8.30.0) (2026-03-27)
|
|
4
11
|
|
|
5
12
|
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.30.
|
|
1
|
+
export declare const version = "8.30.1";
|
package/dist/version.js
CHANGED
package/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.30.
|
|
1
|
+
export declare const version = "8.30.1";
|
package/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '8.30.
|
|
1
|
+
export const version = '8.30.1';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "8.30.
|
|
2
|
+
"version": "8.30.1",
|
|
3
3
|
"name": "@memori.ai/memori-react",
|
|
4
4
|
"author": "Memori Srl",
|
|
5
5
|
"main": "dist/index.js",
|
|
@@ -234,7 +234,6 @@
|
|
|
234
234
|
"@release-it/conventional-changelog": "5.1.1",
|
|
235
235
|
"@size-limit/preset-small-lib": "8.1.0",
|
|
236
236
|
"@storybook/addon-essentials": "7.4.0",
|
|
237
|
-
"@storybook/addon-info": "5.3.21",
|
|
238
237
|
"@storybook/addon-links": "7.4.0",
|
|
239
238
|
"@storybook/addon-mdx-gfm": "7.4.0",
|
|
240
239
|
"@storybook/addons": "7.4.0",
|
|
@@ -279,7 +278,7 @@
|
|
|
279
278
|
"release-it": "15.5.0",
|
|
280
279
|
"rimraf": "3.0.2",
|
|
281
280
|
"size-limit": "8.1.0",
|
|
282
|
-
"storybook": "7.
|
|
281
|
+
"storybook": "7.6.21",
|
|
283
282
|
"stylelint": "14.15.0",
|
|
284
283
|
"stylelint-config-idiomatic-order": "9.0.0",
|
|
285
284
|
"stylelint-config-prettier": "9.0.4",
|
|
@@ -298,7 +297,7 @@
|
|
|
298
297
|
"@react-three/drei": "8.20.2",
|
|
299
298
|
"@react-three/fiber": "7.0.25",
|
|
300
299
|
"classnames": "2.5.1",
|
|
301
|
-
"dompurify": "^3.
|
|
300
|
+
"dompurify": "^3.3.3",
|
|
302
301
|
"ellipsed": "1.6.0",
|
|
303
302
|
"i18next": "22.0.6",
|
|
304
303
|
"katex": "^0.16.11",
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated. Do not edit manually.
|
|
2
|
-
export const version = '8.30.
|
|
2
|
+
export const version = '8.30.1';
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
.memori-drawer-footer {
|
|
2
|
-
flex-shrink: 0;
|
|
3
|
-
padding: var(--memori-spacing-md);
|
|
4
|
-
border-top: 1px solid var(--memori-border-color, #e5e7eb);
|
|
5
|
-
box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, 0.06), 0 -2px 8px -2px rgba(0, 0, 0, 0.03);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.memori-drawer-footer__inner {
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: row;
|
|
11
|
-
flex-wrap: wrap;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: space-between;
|
|
14
|
-
gap: var(--memori-spacing-lg);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.memori-drawer-footer__start {
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
gap: var(--memori-spacing-md);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.memori-drawer-footer__end {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: flex-end;
|
|
27
|
-
margin-left: auto;
|
|
28
|
-
gap: var(--memori-spacing-md);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.memori-drawer-footer__end .memori-button {
|
|
32
|
-
min-height: 44px;
|
|
33
|
-
padding: 10px var(--memori-spacing-lg);
|
|
34
|
-
border-radius: 10px;
|
|
35
|
-
font-weight: 500;
|
|
36
|
-
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.memori-drawer-footer__end .memori-button:hover:not([disabled]) {
|
|
40
|
-
transform: translateY(-1px);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.memori-drawer-footer__inner--centered {
|
|
44
|
-
justify-content: center;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@media (max-width: 768px) {
|
|
48
|
-
.memori-drawer-footer {
|
|
49
|
-
padding: var(--memori-spacing-md) var(--memori-spacing-lg);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.memori-drawer-footer__inner {
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
align-items: stretch;
|
|
55
|
-
gap: var(--memori-spacing-md);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.memori-drawer-footer__end {
|
|
59
|
-
justify-content: flex-end;
|
|
60
|
-
margin-left: 0;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface DrawerFooterProps {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
start?: React.ReactNode;
|
|
5
|
-
end?: React.ReactNode;
|
|
6
|
-
center?: React.ReactNode;
|
|
7
|
-
closeLabel?: string;
|
|
8
|
-
onClose?: () => void;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const DrawerFooter: React.FC<DrawerFooterProps>;
|
|
12
|
-
export default DrawerFooter;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const ui_1 = require("@memori.ai/ui");
|
|
5
|
-
const DrawerFooter = ({ children, start, end, center, closeLabel, onClose, className = '', }) => {
|
|
6
|
-
const hasSlots = start != null || end != null || center != null || closeLabel != null;
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)("footer", { className: `memori-drawer-footer ${className}`.trim(), role: "contentinfo", children: center != null ? ((0, jsx_runtime_1.jsx)("div", { className: "memori-drawer-footer__inner memori-drawer-footer__inner--centered", children: center })) : children != null && !hasSlots ? ((0, jsx_runtime_1.jsx)("div", { className: "memori-drawer-footer__inner memori-drawer-footer__inner--centered", children: children })) : ((0, jsx_runtime_1.jsxs)("div", { className: "memori-drawer-footer__inner", children: [start != null && ((0, jsx_runtime_1.jsx)("div", { className: "memori-drawer-footer__start", children: start })), (0, jsx_runtime_1.jsxs)("div", { className: "memori-drawer-footer__end", children: [end, closeLabel != null && onClose != null && ((0, jsx_runtime_1.jsx)(ui_1.Button, { variant: "primary", onClick: onClose, children: closeLabel }))] })] })) }));
|
|
8
|
-
};
|
|
9
|
-
exports.default = DrawerFooter;
|
|
10
|
-
//# sourceMappingURL=DrawerFooter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerFooter.js","sourceRoot":"","sources":["../../../src/components/DrawerFooter/DrawerFooter.tsx"],"names":[],"mappings":";;;AACA,sCAAuC;AAgBvC,MAAM,YAAY,GAAgC,CAAC,EACjD,QAAQ,EACR,KAAK,EACL,GAAG,EACH,MAAM,EACN,UAAU,EACV,OAAO,EACP,SAAS,GAAG,EAAE,GACf,EAAE,EAAE;IACH,MAAM,QAAQ,GAAG,KAAK,IAAI,IAAI,IAAI,GAAG,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,UAAU,IAAI,IAAI,CAAC;IAEtF,OAAO,CACL,mCACE,SAAS,EAAE,wBAAwB,SAAS,EAAE,CAAC,IAAI,EAAE,EACrD,IAAI,EAAC,aAAa,YAEjB,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,CAChB,gCAAK,SAAS,EAAC,mEAAmE,YAC/E,MAAM,GACH,CACP,CAAC,CAAC,CAAC,QAAQ,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAClC,gCAAK,SAAS,EAAC,mEAAmE,YAC/E,QAAQ,GACL,CACP,CAAC,CAAC,CAAC,CACF,iCAAK,SAAS,EAAC,6BAA6B,aACzC,KAAK,IAAI,IAAI,IAAI,CAChB,gCAAK,SAAS,EAAC,6BAA6B,YAAE,KAAK,GAAO,CAC3D,EACD,iCAAK,SAAS,EAAC,2BAA2B,aACvC,GAAG,EACH,UAAU,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,IAAI,CACxC,uBAAC,WAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,OAAO,YACvC,UAAU,GACJ,CACV,IACG,IACF,CACP,GACM,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,YAAY,CAAC"}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/* FullPage layout – spacing, typography and structure using global design tokens */
|
|
2
|
-
|
|
3
|
-
.memori-widget.memori-layout-fullpage {
|
|
4
|
-
max-width: var(--memori-layout-max-width);
|
|
5
|
-
padding: var(--memori-spacing-md);
|
|
6
|
-
margin-right: auto;
|
|
7
|
-
margin-left: auto;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.memori-widget.memori-layout-fullpage > .memori-spin {
|
|
11
|
-
display: flex;
|
|
12
|
-
height: 100%;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
gap: var(--memori-spacing-lg);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* Header spacing */
|
|
18
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--header {
|
|
19
|
-
flex-shrink: 0;
|
|
20
|
-
margin-bottom: var(--memori-spacing-md);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* Grid: main + left column (avatar) */
|
|
24
|
-
.memori-widget.memori-layout-fullpage .memori--grid {
|
|
25
|
-
display: flex;
|
|
26
|
-
height: auto;
|
|
27
|
-
height: 95vh;
|
|
28
|
-
min-height: 0;
|
|
29
|
-
flex: 1 1 auto;
|
|
30
|
-
align-items: stretch;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
gap: var(--memori-spacing-xl);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.memori-widget.memori-layout-fullpage .memori--grid-column-left {
|
|
36
|
-
width: 50%;
|
|
37
|
-
max-width: 420px;
|
|
38
|
-
flex-shrink: 0;
|
|
39
|
-
margin-right: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--main {
|
|
43
|
-
display: flex;
|
|
44
|
-
min-width: 0;
|
|
45
|
-
flex: 1;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
align-items: center;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--controls {
|
|
52
|
-
display: flex;
|
|
53
|
-
width: 100%;
|
|
54
|
-
max-width: 720px;
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
align-items: center;
|
|
57
|
-
padding: var(--memori-spacing-md);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--controls .memori--start-panel,
|
|
61
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--controls .memori-chat--wrapper {
|
|
62
|
-
width: 100%;
|
|
63
|
-
max-width: 100%;
|
|
64
|
-
padding: 0 !important;
|
|
65
|
-
margin-right: 0;
|
|
66
|
-
margin-left: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/* Typography: title and description in fullpage left column */
|
|
70
|
-
.memori-widget.memori-layout-fullpage .memori--title {
|
|
71
|
-
margin-bottom: var(--memori-spacing-xs);
|
|
72
|
-
color: var(--memori-text-color);
|
|
73
|
-
font-size: var(--memori-text-size-heading-large);
|
|
74
|
-
font-weight: var(--memori-text-weight-semibold);
|
|
75
|
-
line-height: var(--memori-text-line-tight);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.memori-widget.memori-layout-fullpage .memori--description,
|
|
79
|
-
.memori-widget.memori-layout-fullpage .memori--needsPosition {
|
|
80
|
-
padding: var(--memori-spacing-lg);
|
|
81
|
-
padding-top: var(--memori-spacing-xs);
|
|
82
|
-
color: var(--memori-text-color);
|
|
83
|
-
font-size: var(--memori-text-size-base);
|
|
84
|
-
line-height: var(--memori-text-line-relaxed);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* Powered-by position in fullpage */
|
|
88
|
-
.memori-widget.memori-layout-fullpage .memori--powered-by {
|
|
89
|
-
flex-shrink: 0;
|
|
90
|
-
padding: var(--memori-spacing-sm) var(--memori-spacing-md);
|
|
91
|
-
border-radius: var(--memori-radius-box);
|
|
92
|
-
font-size: var(--memori-text-size-small);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@media (max-width: 870px) {
|
|
96
|
-
.memori-widget.memori-layout-fullpage {
|
|
97
|
-
padding: var(--memori-spacing-sm);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.memori-widget.memori-layout-fullpage > .memori-spin {
|
|
101
|
-
gap: var(--memori-spacing-md);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.memori-widget.memori-layout-fullpage .memori--grid-column-left {
|
|
105
|
-
display: none;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--controls {
|
|
109
|
-
padding: var(--memori-spacing-sm);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@media (max-width: 480px) {
|
|
114
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--controls {
|
|
115
|
-
padding: var(--memori-spacing-xs);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sanitizeUserMessageInput = sanitizeUserMessageInput;
|
|
4
|
-
exports.formatUserBubbleHtml = formatUserBubbleHtml;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
const dompurify_1 = tslib_1.__importDefault(require("dompurify"));
|
|
7
|
-
const utils_1 = require("./utils");
|
|
8
|
-
const message_1 = require("./message");
|
|
9
|
-
function sanitizeUserMessageInput(raw) {
|
|
10
|
-
if (raw == null || typeof raw !== 'string') {
|
|
11
|
-
return '';
|
|
12
|
-
}
|
|
13
|
-
const stripped = dompurify_1.default.sanitize(raw, {
|
|
14
|
-
ALLOWED_TAGS: [],
|
|
15
|
-
ALLOWED_ATTR: [],
|
|
16
|
-
});
|
|
17
|
-
return stripped.trim();
|
|
18
|
-
}
|
|
19
|
-
function formatUserBubbleHtml(cleanText) {
|
|
20
|
-
const truncated = (0, message_1.truncateMessagePlain)(cleanText);
|
|
21
|
-
return (0, utils_1.escapeHTML)(truncated).replace(/\n/g, '<br />');
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=userMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userMessage.js","sourceRoot":"","sources":["../../src/helpers/userMessage.ts"],"names":[],"mappings":";;AAQA,4DASC;AAGD,oDAGC;;AAvBD,kEAAkC;AAClC,mCAAqC;AACrC,uCAAiD;AAMjD,SAAgB,wBAAwB,CAAC,GAAW;IAClD,IAAI,GAAG,IAAI,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC3C,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,QAAQ,GAAG,mBAAS,CAAC,QAAQ,CAAC,GAAG,EAAE;QACvC,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,EAAE;KACjB,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;AACzB,CAAC;AAGD,SAAgB,oBAAoB,CAAC,SAAiB;IACpD,MAAM,SAAS,GAAG,IAAA,8BAAoB,EAAC,SAAS,CAAC,CAAC;IAClD,OAAO,IAAA,kBAAU,EAAC,SAAS,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const FacebookIcon = (props) => ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: 800, height: 800, fill: "currentColor", viewBox: "0 0 24 24", ...props, children: [(0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M17.3 9.6a1 1 0 1 0-1.6-1.2l-2.308 3.078-2.185-2.185A1 1 0 0 0 9.7 9.4l-3 4a1 1 0 0 0 1.6 1.2l2.308-3.078 2.185 2.185A1 1 0 0 0 14.3 13.6l3-4Z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", fillRule: "evenodd", d: "M12 23c-1.224 0-1.9-.131-3-.5l-2.106 1.053A2 2 0 0 1 4 21.763V19.5c-2.153-2.008-3-4.323-3-7.5C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11Zm-6-4.37-.636-.593C3.691 16.477 3 14.733 3 12a9 9 0 1 1 9 9c-.986 0-1.448-.089-2.364-.396l-.788-.264L6 21.764V18.63Z", clipRule: "evenodd" })] }));
|
|
5
|
-
exports.default = FacebookIcon;
|
|
6
|
-
//# sourceMappingURL=FacebookIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FacebookIcon.js","sourceRoot":"","sources":["../../src/icons/FacebookIcon.tsx"],"names":[],"mappings":";;;AACA,MAAM,YAAY,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,CAC7D,iCACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,WAAW,KACf,KAAK,aAET,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,gJAAgJ,GAClJ,EACF,iCACE,IAAI,EAAC,cAAc,EACnB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,uQAAuQ,EACzQ,QAAQ,EAAC,SAAS,GAClB,IACE,CACP,CAAA;AACD,kBAAe,YAAY,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const LinkedinIcon = (props) => ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: 800, height: 800, fill: "currentColor", viewBox: "0 0 24 24", ...props, children: [(0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M6.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM5 10a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8ZM11 19h1a1 1 0 0 0 1-1v-4.5c0-1.5 3-2.5 3-.5v5a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-6c0-2-1.5-3-3.5-3S13 10.5 13 10.5V10a1 1 0 0 0-1-1h-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1Z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", fillRule: "evenodd", d: "M20 1a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h16Zm0 2a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h16Z", clipRule: "evenodd" })] }));
|
|
5
|
-
exports.default = LinkedinIcon;
|
|
6
|
-
//# sourceMappingURL=LinkedinIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkedinIcon.js","sourceRoot":"","sources":["../../src/icons/LinkedinIcon.tsx"],"names":[],"mappings":";;;AACA,MAAM,YAAY,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,CAC7D,iCACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,WAAW,KACf,KAAK,aAET,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,sRAAsR,GACxR,EACF,iCACE,IAAI,EAAC,cAAc,EACnB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,iJAAiJ,EACnJ,QAAQ,EAAC,SAAS,GAClB,IACE,CACP,CAAA;AACD,kBAAe,YAAY,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const TelegramIcon = (props) => ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: 800, height: 800, fill: "currentColor", viewBox: "0 0 24 24", ...props, children: (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", fillRule: "evenodd", d: "M23.112 4.494c.318-1.55-1.205-2.837-2.68-2.267L2.342 9.216c-1.647.637-1.72 2.941-.117 3.682l3.94 1.818 1.873 6.559a1 1 0 0 0 1.67.432l2.886-2.887 4.043 3.033a2 2 0 0 0 3.16-1.198l3.315-16.16ZM3.063 11.082l18.09-6.99-3.316 16.161L13.1 16.7a1 1 0 0 0-1.307.093l-1.236 1.236.371-2.043 7.28-7.279a1 1 0 0 0-1.204-1.575L6.95 12.876l-3.888-1.794Zm5.114 3.397.606 2.123.233-1.281a1 1 0 0 1 .277-.528l2.22-2.22-3.336 1.906Z", clipRule: "evenodd" }) }));
|
|
5
|
-
exports.default = TelegramIcon;
|
|
6
|
-
//# sourceMappingURL=TelegramIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TelegramIcon.js","sourceRoot":"","sources":["../../src/icons/TelegramIcon.tsx"],"names":[],"mappings":";;;AACA,MAAM,YAAY,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,CAC7D,gCACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,WAAW,KACf,KAAK,YAET,iCACE,IAAI,EAAC,cAAc,EACnB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,iaAAia,EACna,QAAQ,EAAC,SAAS,GAClB,GACE,CACP,CAAA;AACD,kBAAe,YAAY,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const TwitterIcon = (props) => ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: 800, height: 800, fill: "currentColor", viewBox: "0 0 100 100", ...props, children: [(0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M69.7 8.7H30.4C18.7 8.7 9.1 18.2 9.1 30v41.2c0 11.7 9.5 21.3 21.3 21.3h39.4c11.7 0 21.3-9.5 21.3-21.3V29.9C91 18.2 81.5 8.7 69.7 8.7zm7.1 69.6H61.4c-.1 0-.2 0-.2-.1L46.8 57.3h-.1C40.9 64 35.2 70.6 29.6 77.1c-.3.4-.7.7-1 1-.1.1-.2.1-.3.1h-4.2c-.1 0-.2 0-.1-.1l20.5-23.8c.1-.1.1-.2 0-.3L24.1 24.3v-.1h15.5c.1 0 .1 0 .2.1L53.4 44h.1l16.9-19.7c.1-.1.2-.1.3-.1h4.2c.2 0 .2.1.1.2L55.6 46.9c-.1.1-.1.2 0 .3l21.3 31s0 .1-.1.1z" }), (0, jsx_runtime_1.jsx)("path", { d: "M37.8 27.8h-6.7c-.1 0-.1.1-.1.2l32.2 46.7H69.9c.1 0 .1-.1.1-.2L37.8 27.8z" })] }));
|
|
5
|
-
exports.default = TwitterIcon;
|
|
6
|
-
//# sourceMappingURL=TwitterIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TwitterIcon.js","sourceRoot":"","sources":["../../src/icons/TwitterIcon.tsx"],"names":[],"mappings":";;;AACA,MAAM,WAAW,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,CAC5D,iCAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAC,cAAc,EAAC,OAAO,EAAC,aAAa,KAAK,KAAK,aAClH,iCAAM,IAAI,EAAC,cAAc,EAAC,CAAC,EAAC,oaAAoa,GAAG,EACnc,iCAAM,CAAC,EAAC,2EAA2E,GAAG,IAClF,CACP,CAAA;AACD,kBAAe,WAAW,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
const WhatsappIcon = (props) => ((0, jsx_runtime_1.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: 800, height: 800, fill: "currentColor", viewBox: "0 0 24 24", ...props, children: [(0, jsx_runtime_1.jsx)("path", { fill: "currentColor", d: "M6.014 8.006c.114-.904 1.289-2.132 2.22-1.996V6.01c.907.172 1.625 1.734 2.03 2.436.286.509.1 1.025-.167 1.243-.361.29-.926.692-.808 1.095C9.5 11.5 12 14 13.23 14.711c.466.269.804-.44 1.092-.804.21-.28.726-.447 1.234-.171.759.442 1.474.956 2.135 1.534.33.276.408.684.179 1.115-.403.76-1.569 1.76-2.415 1.557C13.976 17.587 8 15.27 6.08 8.558c-.108-.318-.08-.438-.066-.552Z" }), (0, jsx_runtime_1.jsx)("path", { fill: "currentColor", fillRule: "evenodd", d: "M12 23c-1.224 0-1.9-.131-3-.5l-2.106 1.053A2 2 0 0 1 4 21.763V19.5c-2.153-2.008-3-4.323-3-7.5C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11Zm-6-4.37-.636-.593C3.691 16.477 3 14.733 3 12a9 9 0 1 1 9 9c-.986 0-1.448-.089-2.364-.396l-.788-.264L6 21.764V18.63Z", clipRule: "evenodd" })] }));
|
|
5
|
-
exports.default = WhatsappIcon;
|
|
6
|
-
//# sourceMappingURL=WhatsappIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WhatsappIcon.js","sourceRoot":"","sources":["../../src/icons/WhatsappIcon.tsx"],"names":[],"mappings":";;;AACA,MAAM,YAAY,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,CAC7D,iCACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,WAAW,KACf,KAAK,aAET,iCACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,oXAAoX,GACtX,EACF,iCACE,IAAI,EAAC,cAAc,EACnB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,uQAAuQ,EACzQ,QAAQ,EAAC,SAAS,GAClB,IACE,CACP,CAAA;AACD,kBAAe,YAAY,CAAA"}
|
package/dist/testUtils.d.ts
DELETED
package/dist/testUtils.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.render = render;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
const react_1 = require("@testing-library/react");
|
|
7
|
-
const ui_1 = require("@memori.ai/ui");
|
|
8
|
-
function AlertProviderWrapper({ children }) {
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)(ui_1.AlertProvider, { children: [children, (0, jsx_runtime_1.jsx)(ui_1.AlertViewport, {})] }));
|
|
10
|
-
}
|
|
11
|
-
function render(ui, options) {
|
|
12
|
-
return (0, react_1.render)(ui, {
|
|
13
|
-
wrapper: AlertProviderWrapper,
|
|
14
|
-
...options,
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
tslib_1.__exportStar(require("@testing-library/react"), exports);
|
|
18
|
-
//# sourceMappingURL=testUtils.js.map
|
package/dist/testUtils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testUtils.js","sourceRoot":"","sources":["../src/testUtils.tsx"],"names":[],"mappings":";;AAyCS,wBAAM;;;AAxCf,kDAIgC;AAChC,sCAA6D;AAM7D,SAAS,oBAAoB,CAAC,EAAE,QAAQ,EAAiC;IACvE,OAAO,CACL,wBAAC,kBAAa,eACX,QAAQ,EACT,uBAAC,kBAAa,KAAG,IACH,CACjB,CAAC;AACJ,CAAC;AAUD,SAAS,MAAM,CACb,EAAsB,EACtB,OAAwC;IAExC,OAAO,IAAA,cAAS,EAAC,EAAE,EAAE;QACnB,OAAO,EAAE,oBAAoB;QAC7B,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAGD,iEAAuC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
.memori-drawer-footer {
|
|
2
|
-
flex-shrink: 0;
|
|
3
|
-
padding: var(--memori-spacing-md);
|
|
4
|
-
border-top: 1px solid var(--memori-border-color, #e5e7eb);
|
|
5
|
-
box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, 0.06), 0 -2px 8px -2px rgba(0, 0, 0, 0.03);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.memori-drawer-footer__inner {
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: row;
|
|
11
|
-
flex-wrap: wrap;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: space-between;
|
|
14
|
-
gap: var(--memori-spacing-lg);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.memori-drawer-footer__start {
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
gap: var(--memori-spacing-md);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.memori-drawer-footer__end {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
justify-content: flex-end;
|
|
27
|
-
margin-left: auto;
|
|
28
|
-
gap: var(--memori-spacing-md);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.memori-drawer-footer__end .memori-button {
|
|
32
|
-
min-height: 44px;
|
|
33
|
-
padding: 10px var(--memori-spacing-lg);
|
|
34
|
-
border-radius: 10px;
|
|
35
|
-
font-weight: 500;
|
|
36
|
-
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.memori-drawer-footer__end .memori-button:hover:not([disabled]) {
|
|
40
|
-
transform: translateY(-1px);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.memori-drawer-footer__inner--centered {
|
|
44
|
-
justify-content: center;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@media (max-width: 768px) {
|
|
48
|
-
.memori-drawer-footer {
|
|
49
|
-
padding: var(--memori-spacing-md) var(--memori-spacing-lg);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.memori-drawer-footer__inner {
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
align-items: stretch;
|
|
55
|
-
gap: var(--memori-spacing-md);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.memori-drawer-footer__end {
|
|
59
|
-
justify-content: flex-end;
|
|
60
|
-
margin-left: 0;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface DrawerFooterProps {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
start?: React.ReactNode;
|
|
5
|
-
end?: React.ReactNode;
|
|
6
|
-
center?: React.ReactNode;
|
|
7
|
-
closeLabel?: string;
|
|
8
|
-
onClose?: () => void;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const DrawerFooter: React.FC<DrawerFooterProps>;
|
|
12
|
-
export default DrawerFooter;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button } from '@memori.ai/ui';
|
|
3
|
-
const DrawerFooter = ({ children, start, end, center, closeLabel, onClose, className = '', }) => {
|
|
4
|
-
const hasSlots = start != null || end != null || center != null || closeLabel != null;
|
|
5
|
-
return (_jsx("footer", { className: `memori-drawer-footer ${className}`.trim(), role: "contentinfo", children: center != null ? (_jsx("div", { className: "memori-drawer-footer__inner memori-drawer-footer__inner--centered", children: center })) : children != null && !hasSlots ? (_jsx("div", { className: "memori-drawer-footer__inner memori-drawer-footer__inner--centered", children: children })) : (_jsxs("div", { className: "memori-drawer-footer__inner", children: [start != null && (_jsx("div", { className: "memori-drawer-footer__start", children: start })), _jsxs("div", { className: "memori-drawer-footer__end", children: [end, closeLabel != null && onClose != null && (_jsx(Button, { variant: "primary", onClick: onClose, children: closeLabel }))] })] })) }));
|
|
6
|
-
};
|
|
7
|
-
export default DrawerFooter;
|
|
8
|
-
//# sourceMappingURL=DrawerFooter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerFooter.js","sourceRoot":"","sources":["../../../src/components/DrawerFooter/DrawerFooter.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAgBvC,MAAM,YAAY,GAAgC,CAAC,EACjD,QAAQ,EACR,KAAK,EACL,GAAG,EACH,MAAM,EACN,UAAU,EACV,OAAO,EACP,SAAS,GAAG,EAAE,GACf,EAAE,EAAE;IACH,MAAM,QAAQ,GAAG,KAAK,IAAI,IAAI,IAAI,GAAG,IAAI,IAAI,IAAI,MAAM,IAAI,IAAI,IAAI,UAAU,IAAI,IAAI,CAAC;IAEtF,OAAO,CACL,iBACE,SAAS,EAAE,wBAAwB,SAAS,EAAE,CAAC,IAAI,EAAE,EACrD,IAAI,EAAC,aAAa,YAEjB,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,CAChB,cAAK,SAAS,EAAC,mEAAmE,YAC/E,MAAM,GACH,CACP,CAAC,CAAC,CAAC,QAAQ,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAClC,cAAK,SAAS,EAAC,mEAAmE,YAC/E,QAAQ,GACL,CACP,CAAC,CAAC,CAAC,CACF,eAAK,SAAS,EAAC,6BAA6B,aACzC,KAAK,IAAI,IAAI,IAAI,CAChB,cAAK,SAAS,EAAC,6BAA6B,YAAE,KAAK,GAAO,CAC3D,EACD,eAAK,SAAS,EAAC,2BAA2B,aACvC,GAAG,EACH,UAAU,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,IAAI,CACxC,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,OAAO,YACvC,UAAU,GACJ,CACV,IACG,IACF,CACP,GACM,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/* FullPage layout – spacing, typography and structure using global design tokens */
|
|
2
|
-
|
|
3
|
-
.memori-widget.memori-layout-fullpage {
|
|
4
|
-
max-width: var(--memori-layout-max-width);
|
|
5
|
-
padding: var(--memori-spacing-md);
|
|
6
|
-
margin-right: auto;
|
|
7
|
-
margin-left: auto;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.memori-widget.memori-layout-fullpage > .memori-spin {
|
|
11
|
-
display: flex;
|
|
12
|
-
height: 100%;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
gap: var(--memori-spacing-lg);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* Header spacing */
|
|
18
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--header {
|
|
19
|
-
flex-shrink: 0;
|
|
20
|
-
margin-bottom: var(--memori-spacing-md);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* Grid: main + left column (avatar) */
|
|
24
|
-
.memori-widget.memori-layout-fullpage .memori--grid {
|
|
25
|
-
display: flex;
|
|
26
|
-
height: auto;
|
|
27
|
-
height: 95vh;
|
|
28
|
-
min-height: 0;
|
|
29
|
-
flex: 1 1 auto;
|
|
30
|
-
align-items: stretch;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
gap: var(--memori-spacing-xl);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.memori-widget.memori-layout-fullpage .memori--grid-column-left {
|
|
36
|
-
width: 50%;
|
|
37
|
-
max-width: 420px;
|
|
38
|
-
flex-shrink: 0;
|
|
39
|
-
margin-right: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--main {
|
|
43
|
-
display: flex;
|
|
44
|
-
min-width: 0;
|
|
45
|
-
flex: 1;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
align-items: center;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--controls {
|
|
52
|
-
display: flex;
|
|
53
|
-
width: 100%;
|
|
54
|
-
max-width: 720px;
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
align-items: center;
|
|
57
|
-
padding: var(--memori-spacing-md);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--controls .memori--start-panel,
|
|
61
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--controls .memori-chat--wrapper {
|
|
62
|
-
width: 100%;
|
|
63
|
-
max-width: 100%;
|
|
64
|
-
padding: 0 !important;
|
|
65
|
-
margin-right: 0;
|
|
66
|
-
margin-left: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/* Typography: title and description in fullpage left column */
|
|
70
|
-
.memori-widget.memori-layout-fullpage .memori--title {
|
|
71
|
-
margin-bottom: var(--memori-spacing-xs);
|
|
72
|
-
color: var(--memori-text-color);
|
|
73
|
-
font-size: var(--memori-text-size-heading-large);
|
|
74
|
-
font-weight: var(--memori-text-weight-semibold);
|
|
75
|
-
line-height: var(--memori-text-line-tight);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.memori-widget.memori-layout-fullpage .memori--description,
|
|
79
|
-
.memori-widget.memori-layout-fullpage .memori--needsPosition {
|
|
80
|
-
padding: var(--memori-spacing-lg);
|
|
81
|
-
padding-top: var(--memori-spacing-xs);
|
|
82
|
-
color: var(--memori-text-color);
|
|
83
|
-
font-size: var(--memori-text-size-base);
|
|
84
|
-
line-height: var(--memori-text-line-relaxed);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* Powered-by position in fullpage */
|
|
88
|
-
.memori-widget.memori-layout-fullpage .memori--powered-by {
|
|
89
|
-
flex-shrink: 0;
|
|
90
|
-
padding: var(--memori-spacing-sm) var(--memori-spacing-md);
|
|
91
|
-
border-radius: var(--memori-radius-box);
|
|
92
|
-
font-size: var(--memori-text-size-small);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@media (max-width: 870px) {
|
|
96
|
-
.memori-widget.memori-layout-fullpage {
|
|
97
|
-
padding: var(--memori-spacing-sm);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.memori-widget.memori-layout-fullpage > .memori-spin {
|
|
101
|
-
gap: var(--memori-spacing-md);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.memori-widget.memori-layout-fullpage .memori--grid-column-left {
|
|
105
|
-
display: none;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--controls {
|
|
109
|
-
padding: var(--memori-spacing-sm);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@media (max-width: 480px) {
|
|
114
|
-
.memori-widget.memori-layout-fullpage .memori-chat-layout--controls {
|
|
115
|
-
padding: var(--memori-spacing-xs);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import DOMPurify from 'dompurify';
|
|
2
|
-
import { escapeHTML } from './utils';
|
|
3
|
-
import { truncateMessagePlain } from './message';
|
|
4
|
-
export function sanitizeUserMessageInput(raw) {
|
|
5
|
-
if (raw == null || typeof raw !== 'string') {
|
|
6
|
-
return '';
|
|
7
|
-
}
|
|
8
|
-
const stripped = DOMPurify.sanitize(raw, {
|
|
9
|
-
ALLOWED_TAGS: [],
|
|
10
|
-
ALLOWED_ATTR: [],
|
|
11
|
-
});
|
|
12
|
-
return stripped.trim();
|
|
13
|
-
}
|
|
14
|
-
export function formatUserBubbleHtml(cleanText) {
|
|
15
|
-
const truncated = truncateMessagePlain(cleanText);
|
|
16
|
-
return escapeHTML(truncated).replace(/\n/g, '<br />');
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=userMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"userMessage.js","sourceRoot":"","sources":["../../src/helpers/userMessage.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAMjD,MAAM,UAAU,wBAAwB,CAAC,GAAW;IAClD,IAAI,GAAG,IAAI,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC3C,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE;QACvC,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,EAAE;KACjB,CAAC,CAAC;IACH,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;AACzB,CAAC;AAGD,MAAM,UAAU,oBAAoB,CAAC,SAAiB;IACpD,MAAM,SAAS,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAC;IAClD,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const FacebookIcon = (props) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 800, height: 800, fill: "currentColor", viewBox: "0 0 24 24", ...props, children: [_jsx("path", { fill: "currentColor", d: "M17.3 9.6a1 1 0 1 0-1.6-1.2l-2.308 3.078-2.185-2.185A1 1 0 0 0 9.7 9.4l-3 4a1 1 0 0 0 1.6 1.2l2.308-3.078 2.185 2.185A1 1 0 0 0 14.3 13.6l3-4Z" }), _jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M12 23c-1.224 0-1.9-.131-3-.5l-2.106 1.053A2 2 0 0 1 4 21.763V19.5c-2.153-2.008-3-4.323-3-7.5C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11Zm-6-4.37-.636-.593C3.691 16.477 3 14.733 3 12a9 9 0 1 1 9 9c-.986 0-1.448-.089-2.364-.396l-.788-.264L6 21.764V18.63Z", clipRule: "evenodd" })] }));
|
|
3
|
-
export default FacebookIcon;
|
|
4
|
-
//# sourceMappingURL=FacebookIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FacebookIcon.js","sourceRoot":"","sources":["../../src/icons/FacebookIcon.tsx"],"names":[],"mappings":";AACA,MAAM,YAAY,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,CAC7D,eACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,WAAW,KACf,KAAK,aAET,eACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,gJAAgJ,GAClJ,EACF,eACE,IAAI,EAAC,cAAc,EACnB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,uQAAuQ,EACzQ,QAAQ,EAAC,SAAS,GAClB,IACE,CACP,CAAA;AACD,eAAe,YAAY,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const LinkedinIcon = (props) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 800, height: 800, fill: "currentColor", viewBox: "0 0 24 24", ...props, children: [_jsx("path", { fill: "currentColor", d: "M6.5 8a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM5 10a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-8ZM11 19h1a1 1 0 0 0 1-1v-4.5c0-1.5 3-2.5 3-.5v5a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-6c0-2-1.5-3-3.5-3S13 10.5 13 10.5V10a1 1 0 0 0-1-1h-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1Z" }), _jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M20 1a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V4a3 3 0 0 1 3-3h16Zm0 2a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h16Z", clipRule: "evenodd" })] }));
|
|
3
|
-
export default LinkedinIcon;
|
|
4
|
-
//# sourceMappingURL=LinkedinIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LinkedinIcon.js","sourceRoot":"","sources":["../../src/icons/LinkedinIcon.tsx"],"names":[],"mappings":";AACA,MAAM,YAAY,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,CAC7D,eACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,WAAW,KACf,KAAK,aAET,eACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,sRAAsR,GACxR,EACF,eACE,IAAI,EAAC,cAAc,EACnB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,iJAAiJ,EACnJ,QAAQ,EAAC,SAAS,GAClB,IACE,CACP,CAAA;AACD,eAAe,YAAY,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const TelegramIcon = (props) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: 800, height: 800, fill: "currentColor", viewBox: "0 0 24 24", ...props, children: _jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M23.112 4.494c.318-1.55-1.205-2.837-2.68-2.267L2.342 9.216c-1.647.637-1.72 2.941-.117 3.682l3.94 1.818 1.873 6.559a1 1 0 0 0 1.67.432l2.886-2.887 4.043 3.033a2 2 0 0 0 3.16-1.198l3.315-16.16ZM3.063 11.082l18.09-6.99-3.316 16.161L13.1 16.7a1 1 0 0 0-1.307.093l-1.236 1.236.371-2.043 7.28-7.279a1 1 0 0 0-1.204-1.575L6.95 12.876l-3.888-1.794Zm5.114 3.397.606 2.123.233-1.281a1 1 0 0 1 .277-.528l2.22-2.22-3.336 1.906Z", clipRule: "evenodd" }) }));
|
|
3
|
-
export default TelegramIcon;
|
|
4
|
-
//# sourceMappingURL=TelegramIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TelegramIcon.js","sourceRoot":"","sources":["../../src/icons/TelegramIcon.tsx"],"names":[],"mappings":";AACA,MAAM,YAAY,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,CAC7D,cACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,WAAW,KACf,KAAK,YAET,eACE,IAAI,EAAC,cAAc,EACnB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,iaAAia,EACna,QAAQ,EAAC,SAAS,GAClB,GACE,CACP,CAAA;AACD,eAAe,YAAY,CAAA"}
|
package/esm/icons/TwitterIcon.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const TwitterIcon = (props) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 800, height: 800, fill: "currentColor", viewBox: "0 0 100 100", ...props, children: [_jsx("path", { fill: "currentColor", d: "M69.7 8.7H30.4C18.7 8.7 9.1 18.2 9.1 30v41.2c0 11.7 9.5 21.3 21.3 21.3h39.4c11.7 0 21.3-9.5 21.3-21.3V29.9C91 18.2 81.5 8.7 69.7 8.7zm7.1 69.6H61.4c-.1 0-.2 0-.2-.1L46.8 57.3h-.1C40.9 64 35.2 70.6 29.6 77.1c-.3.4-.7.7-1 1-.1.1-.2.1-.3.1h-4.2c-.1 0-.2 0-.1-.1l20.5-23.8c.1-.1.1-.2 0-.3L24.1 24.3v-.1h15.5c.1 0 .1 0 .2.1L53.4 44h.1l16.9-19.7c.1-.1.2-.1.3-.1h4.2c.2 0 .2.1.1.2L55.6 46.9c-.1.1-.1.2 0 .3l21.3 31s0 .1-.1.1z" }), _jsx("path", { d: "M37.8 27.8h-6.7c-.1 0-.1.1-.1.2l32.2 46.7H69.9c.1 0 .1-.1.1-.2L37.8 27.8z" })] }));
|
|
3
|
-
export default TwitterIcon;
|
|
4
|
-
//# sourceMappingURL=TwitterIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TwitterIcon.js","sourceRoot":"","sources":["../../src/icons/TwitterIcon.tsx"],"names":[],"mappings":";AACA,MAAM,WAAW,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,CAC5D,eAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAC,cAAc,EAAC,OAAO,EAAC,aAAa,KAAK,KAAK,aAClH,eAAM,IAAI,EAAC,cAAc,EAAC,CAAC,EAAC,oaAAoa,GAAG,EACnc,eAAM,CAAC,EAAC,2EAA2E,GAAG,IAClF,CACP,CAAA;AACD,eAAe,WAAW,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const WhatsappIcon = (props) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 800, height: 800, fill: "currentColor", viewBox: "0 0 24 24", ...props, children: [_jsx("path", { fill: "currentColor", d: "M6.014 8.006c.114-.904 1.289-2.132 2.22-1.996V6.01c.907.172 1.625 1.734 2.03 2.436.286.509.1 1.025-.167 1.243-.361.29-.926.692-.808 1.095C9.5 11.5 12 14 13.23 14.711c.466.269.804-.44 1.092-.804.21-.28.726-.447 1.234-.171.759.442 1.474.956 2.135 1.534.33.276.408.684.179 1.115-.403.76-1.569 1.76-2.415 1.557C13.976 17.587 8 15.27 6.08 8.558c-.108-.318-.08-.438-.066-.552Z" }), _jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M12 23c-1.224 0-1.9-.131-3-.5l-2.106 1.053A2 2 0 0 1 4 21.763V19.5c-2.153-2.008-3-4.323-3-7.5C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11Zm-6-4.37-.636-.593C3.691 16.477 3 14.733 3 12a9 9 0 1 1 9 9c-.986 0-1.448-.089-2.364-.396l-.788-.264L6 21.764V18.63Z", clipRule: "evenodd" })] }));
|
|
3
|
-
export default WhatsappIcon;
|
|
4
|
-
//# sourceMappingURL=WhatsappIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WhatsappIcon.js","sourceRoot":"","sources":["../../src/icons/WhatsappIcon.tsx"],"names":[],"mappings":";AACA,MAAM,YAAY,GAAG,CAAC,KAAoC,EAAE,EAAE,CAAC,CAC7D,eACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,IAAI,EAAC,cAAc,EACnB,OAAO,EAAC,WAAW,KACf,KAAK,aAET,eACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,oXAAoX,GACtX,EACF,eACE,IAAI,EAAC,cAAc,EACnB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,uQAAuQ,EACzQ,QAAQ,EAAC,SAAS,GAClB,IACE,CACP,CAAA;AACD,eAAe,YAAY,CAAA"}
|
package/esm/testUtils.d.ts
DELETED
package/esm/testUtils.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { render as rtlRender, } from '@testing-library/react';
|
|
3
|
-
import { AlertProvider, AlertViewport } from '@memori.ai/ui';
|
|
4
|
-
function AlertProviderWrapper({ children }) {
|
|
5
|
-
return (_jsxs(AlertProvider, { children: [children, _jsx(AlertViewport, {})] }));
|
|
6
|
-
}
|
|
7
|
-
function render(ui, options) {
|
|
8
|
-
return rtlRender(ui, {
|
|
9
|
-
wrapper: AlertProviderWrapper,
|
|
10
|
-
...options,
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
export * from '@testing-library/react';
|
|
14
|
-
export { render };
|
|
15
|
-
//# sourceMappingURL=testUtils.js.map
|
package/esm/testUtils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testUtils.js","sourceRoot":"","sources":["../src/testUtils.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,MAAM,IAAI,SAAS,GAGpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAM7D,SAAS,oBAAoB,CAAC,EAAE,QAAQ,EAAiC;IACvE,OAAO,CACL,MAAC,aAAa,eACX,QAAQ,EACT,KAAC,aAAa,KAAG,IACH,CACjB,CAAC;AACJ,CAAC;AAUD,SAAS,MAAM,CACb,EAAsB,EACtB,OAAwC;IAExC,OAAO,SAAS,CAAC,EAAE,EAAE;QACnB,OAAO,EAAE,oBAAoB;QAC7B,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAGD,cAAc,wBAAwB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,CAAC"}
|