@memori.ai/memori-react 8.41.4 → 8.41.5
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 +8 -0
- package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js +6 -3
- package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
- package/dist/components/FilePreview/FilePreview.js +1 -3
- package/dist/components/FilePreview/FilePreview.js.map +1 -1
- package/dist/components/MediaWidget/MediaItemWidget.js +1 -3
- package/dist/components/MediaWidget/MediaItemWidget.js.map +1 -1
- package/dist/components/MediaWidget/MediaPreviewModal.js +2 -6
- package/dist/components/MediaWidget/MediaPreviewModal.js.map +1 -1
- package/dist/components/MemoriArtifactSystem/utils/applyEdits.d.ts +8 -0
- package/dist/components/MemoriArtifactSystem/utils/applyEdits.js +117 -0
- package/dist/components/MemoriArtifactSystem/utils/applyEdits.js.map +1 -0
- package/dist/helpers/message.d.ts +1 -1
- package/dist/helpers/message.js +4 -4
- package/dist/helpers/message.js.map +1 -1
- package/dist/helpers/nats/natsBundled.js +13224 -0
- package/dist/helpers/utils.js +9 -3
- package/dist/helpers/utils.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js +6 -3
- package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
- package/esm/components/FilePreview/FilePreview.js +1 -3
- package/esm/components/FilePreview/FilePreview.js.map +1 -1
- package/esm/components/MediaWidget/MediaItemWidget.js +2 -4
- package/esm/components/MediaWidget/MediaItemWidget.js.map +1 -1
- package/esm/components/MediaWidget/MediaPreviewModal.js +2 -6
- package/esm/components/MediaWidget/MediaPreviewModal.js.map +1 -1
- package/esm/components/MemoriArtifactSystem/utils/applyEdits.d.ts +8 -0
- package/esm/components/MemoriArtifactSystem/utils/applyEdits.js +112 -0
- package/esm/components/MemoriArtifactSystem/utils/applyEdits.js.map +1 -0
- package/esm/helpers/message.d.ts +1 -1
- package/esm/helpers/message.js +2 -2
- package/esm/helpers/message.js.map +1 -1
- package/esm/helpers/nats/natsBundled.js +13225 -0
- package/esm/helpers/utils.js +9 -3
- package/esm/helpers/utils.js.map +1 -1
- package/esm/version.d.ts +1 -1
- package/esm/version.js +1 -1
- package/package.json +1 -1
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.tsx +8 -4
- package/src/components/FilePreview/FilePreview.tsx +1 -3
- package/src/components/MediaWidget/MediaItemWidget.tsx +2 -3
- package/src/components/MediaWidget/MediaPreviewModal.tsx +2 -6
- package/src/helpers/message.test.ts +28 -1
- package/src/helpers/message.ts +4 -4
- package/src/helpers/utils.test.ts +49 -0
- package/src/helpers/utils.ts +16 -3
- package/src/version.ts +1 -1
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.css +0 -367
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +0 -36
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.js +0 -116
- package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.js.map +0 -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/MobileSessionPanel/MobileSessionPanel.css +0 -437
- package/dist/components/MobileSessionPanel/MobileSessionPanel.d.ts +0 -62
- package/dist/components/MobileSessionPanel/MobileSessionPanel.js +0 -292
- package/dist/components/MobileSessionPanel/MobileSessionPanel.js.map +0 -1
- package/dist/components/PositionPopover/PositionPopover.css +0 -219
- package/dist/components/PositionPopover/PositionPopover.d.ts +0 -20
- package/dist/components/PositionPopover/PositionPopover.js +0 -187
- package/dist/components/PositionPopover/PositionPopover.js.map +0 -1
- package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.d.ts +0 -4
- package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.js +0 -41
- package/dist/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +0 -1
- package/dist/components/layouts/WebsiteAssistant/website-assistant.css +0 -690
- package/dist/components/layouts/fullpage.css +0 -396
- package/dist/helpers/usePressTooltip.d.ts +0 -13
- package/dist/helpers/usePressTooltip.js +0 -23
- package/dist/helpers/usePressTooltip.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/MemoriIcon.d.ts +0 -3
- package/dist/icons/MemoriIcon.js +0 -8
- package/dist/icons/MemoriIcon.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/icons/artifacts/DocumentIcon.d.ts +0 -3
- package/dist/icons/artifacts/DocumentIcon.js +0 -6
- package/dist/icons/artifacts/DocumentIcon.js.map +0 -1
- package/dist/icons/artifacts/HtmlIcon.d.ts +0 -3
- package/dist/icons/artifacts/HtmlIcon.js +0 -6
- package/dist/icons/artifacts/HtmlIcon.js.map +0 -1
- package/dist/icons/artifacts/JavascriptIcon.d.ts +0 -3
- package/dist/icons/artifacts/JavascriptIcon.js +0 -6
- package/dist/icons/artifacts/JavascriptIcon.js.map +0 -1
- package/dist/icons/artifacts/MarkdownIcon.d.ts +0 -3
- package/dist/icons/artifacts/MarkdownIcon.js +0 -6
- package/dist/icons/artifacts/MarkdownIcon.js.map +0 -1
- package/dist/icons/artifacts/PythonIcon.d.ts +0 -3
- package/dist/icons/artifacts/PythonIcon.js +0 -6
- package/dist/icons/artifacts/PythonIcon.js.map +0 -1
- package/dist/icons/artifacts/SvgIcon.d.ts +0 -3
- package/dist/icons/artifacts/SvgIcon.js +0 -6
- package/dist/icons/artifacts/SvgIcon.js.map +0 -1
- package/dist/icons/artifacts/XmlIcon.d.ts +0 -3
- package/dist/icons/artifacts/XmlIcon.js +0 -6
- package/dist/icons/artifacts/XmlIcon.js.map +0 -1
- package/dist/icons/artifacts/cssIcon.d.ts +0 -3
- package/dist/icons/artifacts/cssIcon.js +0 -6
- package/dist/icons/artifacts/cssIcon.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/ChatHistoryDrawer/ChatResumeDrawer.css +0 -367
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +0 -36
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js +0 -113
- package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.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/MobileSessionPanel/MobileSessionPanel.css +0 -437
- package/esm/components/MobileSessionPanel/MobileSessionPanel.d.ts +0 -62
- package/esm/components/MobileSessionPanel/MobileSessionPanel.js +0 -289
- package/esm/components/MobileSessionPanel/MobileSessionPanel.js.map +0 -1
- package/esm/components/PositionPopover/PositionPopover.css +0 -219
- package/esm/components/PositionPopover/PositionPopover.d.ts +0 -20
- package/esm/components/PositionPopover/PositionPopover.js +0 -182
- package/esm/components/PositionPopover/PositionPopover.js.map +0 -1
- package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.d.ts +0 -4
- package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js +0 -38
- package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +0 -1
- package/esm/components/layouts/WebsiteAssistant/website-assistant.css +0 -690
- package/esm/components/layouts/fullpage.css +0 -396
- package/esm/helpers/usePressTooltip.d.ts +0 -13
- package/esm/helpers/usePressTooltip.js +0 -20
- package/esm/helpers/usePressTooltip.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/MemoriIcon.d.ts +0 -3
- package/esm/icons/MemoriIcon.js +0 -6
- package/esm/icons/MemoriIcon.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/icons/artifacts/DocumentIcon.d.ts +0 -3
- package/esm/icons/artifacts/DocumentIcon.js +0 -4
- package/esm/icons/artifacts/DocumentIcon.js.map +0 -1
- package/esm/icons/artifacts/HtmlIcon.d.ts +0 -3
- package/esm/icons/artifacts/HtmlIcon.js +0 -4
- package/esm/icons/artifacts/HtmlIcon.js.map +0 -1
- package/esm/icons/artifacts/JavascriptIcon.d.ts +0 -3
- package/esm/icons/artifacts/JavascriptIcon.js +0 -4
- package/esm/icons/artifacts/JavascriptIcon.js.map +0 -1
- package/esm/icons/artifacts/MarkdownIcon.d.ts +0 -3
- package/esm/icons/artifacts/MarkdownIcon.js +0 -4
- package/esm/icons/artifacts/MarkdownIcon.js.map +0 -1
- package/esm/icons/artifacts/PythonIcon.d.ts +0 -3
- package/esm/icons/artifacts/PythonIcon.js +0 -4
- package/esm/icons/artifacts/PythonIcon.js.map +0 -1
- package/esm/icons/artifacts/SvgIcon.d.ts +0 -3
- package/esm/icons/artifacts/SvgIcon.js +0 -4
- package/esm/icons/artifacts/SvgIcon.js.map +0 -1
- package/esm/icons/artifacts/XmlIcon.d.ts +0 -3
- package/esm/icons/artifacts/XmlIcon.js +0 -4
- package/esm/icons/artifacts/XmlIcon.js.map +0 -1
- package/esm/icons/artifacts/cssIcon.d.ts +0 -3
- package/esm/icons/artifacts/cssIcon.js +0 -4
- package/esm/icons/artifacts/cssIcon.js.map +0 -1
- package/esm/testUtils.d.ts +0 -5
- package/esm/testUtils.js +0 -15
- package/esm/testUtils.js.map +0 -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,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(), 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,iBAAQ,SAAS,EAAE,wBAAwB,SAAS,EAAE,CAAC,IAAI,EAAE,YAC1D,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,437 +0,0 @@
|
|
|
1
|
-
.memori-mobile-session-panel--overlay {
|
|
2
|
-
position: fixed;
|
|
3
|
-
z-index: 2100;
|
|
4
|
-
top: 0;
|
|
5
|
-
right: 0;
|
|
6
|
-
bottom: 0;
|
|
7
|
-
left: 0;
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: flex-end;
|
|
10
|
-
background: rgba(0, 0, 0, 0.34);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.memori-mobile-session-panel--backdrop {
|
|
14
|
-
position: absolute;
|
|
15
|
-
z-index: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
border: none;
|
|
18
|
-
margin: 0;
|
|
19
|
-
background: transparent;
|
|
20
|
-
cursor: default;
|
|
21
|
-
inset: 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.memori-mobile-session-panel--overlay-popover {
|
|
25
|
-
align-items: flex-start;
|
|
26
|
-
justify-content: flex-end;
|
|
27
|
-
background: transparent;
|
|
28
|
-
pointer-events: none;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.memori-mobile-session-panel {
|
|
32
|
-
position: relative;
|
|
33
|
-
z-index: 1;
|
|
34
|
-
overflow: auto;
|
|
35
|
-
width: 100%;
|
|
36
|
-
max-height: 90vh;
|
|
37
|
-
padding: 0.75rem 0 0;
|
|
38
|
-
border-radius: 20px 20px 0 0;
|
|
39
|
-
background: var(--memori-secondary-background, #f5f5f5);
|
|
40
|
-
transition: transform 0.2s ease-out;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.memori-mobile-session-panel:not(.memori-mobile-session-panel--popover) {
|
|
44
|
-
margin-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.memori-mobile-session-panel--popover {
|
|
48
|
-
width: min(24rem, calc(100vw - 1rem));
|
|
49
|
-
max-height: min(75vh, 34rem);
|
|
50
|
-
border: 1px solid var(--memori-border-color, rgba(0, 0, 0, 0.08));
|
|
51
|
-
border-radius: 14px;
|
|
52
|
-
margin: 0.5rem;
|
|
53
|
-
margin-top: 4.5rem;
|
|
54
|
-
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
|
|
55
|
-
overflow-x: hidden;
|
|
56
|
-
overflow-y: auto;
|
|
57
|
-
pointer-events: auto;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.memori-mobile-session-panel--handle {
|
|
61
|
-
width: 44px;
|
|
62
|
-
height: 4px;
|
|
63
|
-
border-radius: 999px;
|
|
64
|
-
margin: 0 auto 0.875rem;
|
|
65
|
-
background: var(--memori-border-color);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.memori-mobile-session-panel--user {
|
|
69
|
-
display: flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
padding: 0 1rem 0.9rem;
|
|
72
|
-
border-bottom: 1px solid var(--memori-border-color);
|
|
73
|
-
gap: 0.75rem;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.memori-mobile-session-panel--login {
|
|
77
|
-
display: inline-flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
justify-content: center;
|
|
80
|
-
padding: 0.45rem 0.8rem;
|
|
81
|
-
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
82
|
-
border-radius: 999px;
|
|
83
|
-
margin-left: auto;
|
|
84
|
-
background: var(--memori-main-background);
|
|
85
|
-
color: var(--memori-text-color, #111);
|
|
86
|
-
cursor: pointer;
|
|
87
|
-
font-size: 0.82rem;
|
|
88
|
-
font-weight: 600;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.memori-mobile-session-panel--login-cta-wrap {
|
|
92
|
-
position: sticky;
|
|
93
|
-
bottom: 0;
|
|
94
|
-
/* padding: 0.75rem 1rem calc(0.95rem + env(safe-area-inset-bottom, 0px)); */
|
|
95
|
-
border-top: 1px solid var(--memori-border-color, rgba(0, 0, 0, 0.08));
|
|
96
|
-
margin-top: 0.5rem;
|
|
97
|
-
background: var(--memori-secondary-background, #f5f5f5);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.memori-mobile-session-panel--login-cta {
|
|
101
|
-
width: 100%;
|
|
102
|
-
min-height: 2.8rem;
|
|
103
|
-
justify-content: flex-start !important;
|
|
104
|
-
padding: 0.72rem 1rem !important;
|
|
105
|
-
border: 0 !important;
|
|
106
|
-
border-radius: 0 !important;
|
|
107
|
-
gap: 0.5rem;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.memori-mobile-session-panel--login-cta > span {
|
|
111
|
-
gap: 0.5rem;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.memori-mobile-session-panel--avatar {
|
|
115
|
-
display: inline-flex;
|
|
116
|
-
width: 42px;
|
|
117
|
-
height: 42px;
|
|
118
|
-
align-items: center;
|
|
119
|
-
justify-content: center;
|
|
120
|
-
border-radius: 999px;
|
|
121
|
-
background: linear-gradient(140deg, #6f63d9, #4f5dcf);
|
|
122
|
-
color: #fff;
|
|
123
|
-
font-size: 1rem;
|
|
124
|
-
font-weight: 600;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.memori-mobile-session-panel--user-meta {
|
|
128
|
-
min-width: 0;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.memori-mobile-session-panel--user-name {
|
|
132
|
-
margin: 0;
|
|
133
|
-
color: var(--memori-text-color, #111);
|
|
134
|
-
font-size: 1rem;
|
|
135
|
-
font-weight: 600;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.memori-mobile-session-panel--user-email {
|
|
139
|
-
overflow: hidden;
|
|
140
|
-
margin: 0.1rem 0 0;
|
|
141
|
-
color: var(--memori-text-color);
|
|
142
|
-
font-size: 0.9rem;
|
|
143
|
-
text-overflow: ellipsis;
|
|
144
|
-
white-space: nowrap;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.memori-mobile-session-panel--session-info {
|
|
148
|
-
padding-bottom: 0.15rem;
|
|
149
|
-
border-bottom: 1px solid var(--memori-border-color, rgba(0, 0, 0, 0.08));
|
|
150
|
-
margin-bottom: 0.15rem;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.memori-mobile-session-panel--section-title {
|
|
154
|
-
padding: 0.85rem 1rem 0.3rem;
|
|
155
|
-
color: var(--memori-text-color);
|
|
156
|
-
font-size: 0.8rem;
|
|
157
|
-
font-weight: 600;
|
|
158
|
-
letter-spacing: 0.03em;
|
|
159
|
-
text-transform: uppercase;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.memori-mobile-session-panel--actions {
|
|
163
|
-
padding: 0;
|
|
164
|
-
margin: 0;
|
|
165
|
-
list-style: none;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.memori-mobile-session-panel--action {
|
|
169
|
-
display: flex;
|
|
170
|
-
width: 100%;
|
|
171
|
-
align-items: center;
|
|
172
|
-
justify-content: flex-start;
|
|
173
|
-
padding: 0.72rem 1rem;
|
|
174
|
-
border: 0;
|
|
175
|
-
border-radius: 0 !important;
|
|
176
|
-
background: transparent;
|
|
177
|
-
color: inherit;
|
|
178
|
-
cursor: pointer;
|
|
179
|
-
gap: 0.7rem;
|
|
180
|
-
text-align: left;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.memori-mobile-session-panel--actions li {
|
|
184
|
-
width: 100%;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.memori-mobile-session-panel--action:disabled {
|
|
188
|
-
cursor: not-allowed;
|
|
189
|
-
opacity: 0.45;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.memori-mobile-session-panel--action-icon {
|
|
193
|
-
display: inline-flex;
|
|
194
|
-
width: 2.3rem;
|
|
195
|
-
height: 2.3rem;
|
|
196
|
-
align-items: center;
|
|
197
|
-
justify-content: center;
|
|
198
|
-
border: 1px solid color-mix(in srgb, var(--memori-text-color, #111827) 16%, transparent);
|
|
199
|
-
border-radius: 12px;
|
|
200
|
-
/* background: var(--memori-main-background); */
|
|
201
|
-
color: var(--memori-primary);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
[data-theme='dark'] .memori-mobile-session-panel--action-icon {
|
|
205
|
-
border-color: color-mix(in srgb, #fff 16%, transparent);
|
|
206
|
-
color: #fff;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.memori-mobile-session-panel--action-icon svg {
|
|
210
|
-
width: 1rem;
|
|
211
|
-
max-width: 1rem;
|
|
212
|
-
height: 1rem;
|
|
213
|
-
max-height: 1rem;
|
|
214
|
-
flex-shrink: 0;
|
|
215
|
-
/* color: var(--memori-primary); */
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.memori-mobile-session-panel--action-copy {
|
|
219
|
-
display: flex;
|
|
220
|
-
min-width: 0;
|
|
221
|
-
flex: 1;
|
|
222
|
-
flex-direction: column;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.memori-mobile-session-panel--action-title {
|
|
226
|
-
color: var(--memori-text-color, #111);
|
|
227
|
-
font-size: 1rem;
|
|
228
|
-
font-weight: 500;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.memori-mobile-session-panel--action-subtitle {
|
|
232
|
-
color: var(--memori-text-color);
|
|
233
|
-
font-size: 0.82rem;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.memori-mobile-session-panel--action-trailing {
|
|
237
|
-
display: inline-flex;
|
|
238
|
-
align-items: center;
|
|
239
|
-
margin-left: auto;
|
|
240
|
-
color: var(--memori-text-color);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.memori-mobile-session-panel--chevron {
|
|
244
|
-
font-size: 1rem;
|
|
245
|
-
font-weight: 700;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.memori-mobile-session-panel--logout {
|
|
249
|
-
display: flex !important;
|
|
250
|
-
width: calc(100% - 2rem);
|
|
251
|
-
align-items: center !important;
|
|
252
|
-
justify-content: flex-start !important;
|
|
253
|
-
padding: 0.85rem 0rem !important;
|
|
254
|
-
border: 0;
|
|
255
|
-
border-radius: 0 !important;
|
|
256
|
-
border-top: 1px solid var(--memori-border-color);
|
|
257
|
-
margin: 0.35rem 1rem 0.2rem;
|
|
258
|
-
background: transparent;
|
|
259
|
-
color: #a53b45;
|
|
260
|
-
cursor: pointer;
|
|
261
|
-
gap: 0.7rem;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.memori-mobile-session-panel--logout > span {
|
|
265
|
-
gap: 0.5rem;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.memori-mobile-session-panel--action .memori-button__content {
|
|
269
|
-
display: flex !important;
|
|
270
|
-
width: 100%;
|
|
271
|
-
align-items: center;
|
|
272
|
-
gap: 0.5rem;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.memori-mobile-session-panel--logout .memori-mobile-session-panel--action-icon {
|
|
276
|
-
color: #a53b45;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
.memori-mobile-session-panel--logout-label {
|
|
280
|
-
font-size: 1.02rem;
|
|
281
|
-
font-weight: 500;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.memori-mobile-session-panel--page {
|
|
285
|
-
padding: 0.25rem 1rem 1rem;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.memori-mobile-session-panel--back {
|
|
289
|
-
display: inline-flex !important;
|
|
290
|
-
align-items: center !important;
|
|
291
|
-
padding: 0;
|
|
292
|
-
border: 0;
|
|
293
|
-
border-radius: 0 !important;
|
|
294
|
-
margin-bottom: 0.4rem;
|
|
295
|
-
background: transparent;
|
|
296
|
-
color: var(--memori-text-color);
|
|
297
|
-
cursor: pointer;
|
|
298
|
-
font-size: 0.88rem;
|
|
299
|
-
font-weight: 600;
|
|
300
|
-
gap: 0.35rem;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
/* User details typography */
|
|
304
|
-
.memori-dropdown--user-details {
|
|
305
|
-
display: flex;
|
|
306
|
-
min-width: 0;
|
|
307
|
-
flex: 1;
|
|
308
|
-
flex-direction: column;
|
|
309
|
-
gap: 2px;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.memori-dropdown--user-name {
|
|
313
|
-
margin: 0;
|
|
314
|
-
color: var(--memori-text-color, #111);
|
|
315
|
-
font-size: 1.05rem;
|
|
316
|
-
font-weight: 700;
|
|
317
|
-
letter-spacing: -0.01em;
|
|
318
|
-
line-height: 1.3;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
.memori-dropdown--user-email {
|
|
322
|
-
overflow: hidden;
|
|
323
|
-
margin: 0;
|
|
324
|
-
color: var(--memori-text-muted, #666);
|
|
325
|
-
font-size: 0.875rem;
|
|
326
|
-
line-height: 1.35;
|
|
327
|
-
text-overflow: ellipsis;
|
|
328
|
-
white-space: nowrap;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
.memori-mobile-session-panel--page-title {
|
|
332
|
-
margin: 0 0 0.8rem;
|
|
333
|
-
color: var(--memori-text-color, #111);
|
|
334
|
-
font-size: 1.15rem;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
.memori-mobile-session-panel--page-content {
|
|
338
|
-
display: flex;
|
|
339
|
-
flex-direction: column;
|
|
340
|
-
gap: 0.8rem;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.memori-mobile-session-panel--share-content,
|
|
344
|
-
.memori-mobile-session-panel--share-content * {
|
|
345
|
-
font-family: var(--memori-font-family, 'Lexend Deca', sans-serif);
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.memori-mobile-session-panel--ai-usage-content {
|
|
349
|
-
padding: 0;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
.memori-mobile-session-panel--ai-usage.memori-dropdown--sustainability {
|
|
353
|
-
width: 100%;
|
|
354
|
-
min-width: 0;
|
|
355
|
-
padding: 0;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.memori-mobile-session-panel--meta-label {
|
|
359
|
-
margin: 0;
|
|
360
|
-
color: var(--memori-text-color);
|
|
361
|
-
font-size: 0.8rem;
|
|
362
|
-
text-transform: uppercase;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.memori-mobile-session-panel--meta-value {
|
|
366
|
-
margin: 0;
|
|
367
|
-
color: var(--memori-text-color, #111);
|
|
368
|
-
font-size: 0.96rem;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.memori-mobile-session-panel--page-actions {
|
|
372
|
-
display: flex;
|
|
373
|
-
flex-direction: column;
|
|
374
|
-
gap: 0.5rem;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.memori-mobile-session-panel--page-btn {
|
|
378
|
-
display: flex !important;
|
|
379
|
-
width: 100%;
|
|
380
|
-
align-items: center !important;
|
|
381
|
-
justify-content: center !important;
|
|
382
|
-
padding: 0.65rem 0.75rem;
|
|
383
|
-
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
384
|
-
/* border-radius: 0 !important; */
|
|
385
|
-
background: var(--memori-main-background);
|
|
386
|
-
color: var(--memori-text-color, #111);
|
|
387
|
-
cursor: pointer;
|
|
388
|
-
font-size: 0.9rem;
|
|
389
|
-
font-weight: 600;
|
|
390
|
-
text-align: center;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.memori-mobile-session-panel--page-btn .memori-button__content {
|
|
394
|
-
display: inline-flex !important;
|
|
395
|
-
width: 100%;
|
|
396
|
-
align-items: center;
|
|
397
|
-
justify-content: center;
|
|
398
|
-
gap: 0.5rem;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.memori-mobile-session-panel--page-btn-active {
|
|
402
|
-
border-color: color-mix(in oklch, var(--memori-success, #16a34a) 55%, var(--memori-border-color, #e5e7eb));
|
|
403
|
-
color: var(--memori-text-color, #111);
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
.memori-mobile-session-panel--page-btn:disabled {
|
|
407
|
-
cursor: not-allowed;
|
|
408
|
-
opacity: 0.45;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
.memori-mobile-session-panel--page-btn-secondary {
|
|
412
|
-
background: transparent;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
[data-theme='dark'] .memori-mobile-session-panel--page-btn-active,
|
|
416
|
-
.memori-widget[data-theme='dark'] .memori-mobile-session-panel--page-btn-active {
|
|
417
|
-
background: transparent;
|
|
418
|
-
color: var(--memori-text-color, #fff);
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
.memori-mobile-session-panel--known-facts-description,
|
|
422
|
-
.memori-mobile-session-panel--known-facts-count {
|
|
423
|
-
margin: 0;
|
|
424
|
-
color: rgba(0, 0, 0, 0.7);
|
|
425
|
-
font-size: 0.9rem;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
@media (max-width: 768px) {
|
|
429
|
-
.memori-mobile-session-panel--overlay {
|
|
430
|
-
display: flex;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.memori-mobile-session-panel--overlay-popover {
|
|
434
|
-
align-items: flex-start;
|
|
435
|
-
justify-content: flex-end;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Message, User, Venue } from '@memori.ai/memori-api-client/dist/types';
|
|
3
|
-
type SessionAction = {
|
|
4
|
-
key: string;
|
|
5
|
-
icon: React.ReactNode;
|
|
6
|
-
title: string;
|
|
7
|
-
subtitle?: string;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
trailing?: React.ReactNode;
|
|
10
|
-
view?: 'location' | 'knownFacts' | 'share';
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export interface MobileSessionPanelProps {
|
|
14
|
-
open: boolean;
|
|
15
|
-
onClose: () => void;
|
|
16
|
-
presentation?: 'sheet' | 'popover';
|
|
17
|
-
title: string;
|
|
18
|
-
loginToken?: string;
|
|
19
|
-
userName: string;
|
|
20
|
-
userInitial?: string;
|
|
21
|
-
user?: User;
|
|
22
|
-
apiClient?: {
|
|
23
|
-
backend?: {
|
|
24
|
-
uploadAsset?: (name: string, payload: string, token: string) => Promise<any>;
|
|
25
|
-
pwlUpdateUser?: (token: string, userID: string, user: Partial<User>) => Promise<any>;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
userEmail?: string;
|
|
29
|
-
birthDate?: string;
|
|
30
|
-
avatarURL?: string;
|
|
31
|
-
actions: SessionAction[];
|
|
32
|
-
logoutLabel?: string;
|
|
33
|
-
onLogout?: () => void;
|
|
34
|
-
onKnownFactsOpen?: () => void;
|
|
35
|
-
onLocationEnable?: () => void;
|
|
36
|
-
onLocationDisable?: () => void;
|
|
37
|
-
knownFactsPageTitle?: string;
|
|
38
|
-
sharePageTitle?: string;
|
|
39
|
-
locationPageTitle?: string;
|
|
40
|
-
backLabel?: string;
|
|
41
|
-
locationStatusLabel?: string;
|
|
42
|
-
locationPlace?: string;
|
|
43
|
-
locationUnknownLabel?: string;
|
|
44
|
-
locationEnableLabel?: string;
|
|
45
|
-
locationDisableLabel?: string;
|
|
46
|
-
venue?: Venue;
|
|
47
|
-
setVenue?: (venue?: Venue) => void;
|
|
48
|
-
knownFactsDescription?: string;
|
|
49
|
-
knownFactsCtaLabel?: string;
|
|
50
|
-
knownFactsCountLabel?: string;
|
|
51
|
-
shareContent?: React.ReactNode;
|
|
52
|
-
knownFactsDisabled?: boolean;
|
|
53
|
-
knownFactsHint?: string;
|
|
54
|
-
showSessionInfo?: boolean;
|
|
55
|
-
history?: Message[];
|
|
56
|
-
aiUsageTitle?: string;
|
|
57
|
-
isLoggedIn?: boolean;
|
|
58
|
-
loginLabel?: string;
|
|
59
|
-
onLogin?: () => void;
|
|
60
|
-
}
|
|
61
|
-
declare const MobileSessionPanel: React.FC<MobileSessionPanelProps>;
|
|
62
|
-
export default MobileSessionPanel;
|