@memori.ai/memori-react 7.21.1 → 7.23.0
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 +56 -0
- package/dist/components/CompletionProviderStatus/CompletionProviderStatus.css +33 -23
- package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js +85 -8
- package/dist/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
- package/dist/components/KnownFacts/KnownFacts.js +1 -1
- package/dist/components/KnownFacts/KnownFacts.js.map +1 -1
- package/dist/components/StartPanel/StartPanel.css +29 -0
- package/dist/components/StartPanel/StartPanel.js +2 -1
- package/dist/components/StartPanel/StartPanel.js.map +1 -1
- package/dist/components/Typing/Typing.js +49 -47
- package/dist/components/Typing/Typing.js.map +1 -1
- package/dist/components/UploadButton/UploadButton.d.ts +1 -0
- package/dist/components/UploadButton/UploadButton.js +142 -3
- package/dist/components/UploadButton/UploadButton.js.map +1 -1
- package/dist/components/icons/Alert.d.ts +5 -0
- package/dist/components/icons/Alert.js +6 -0
- package/dist/components/icons/Alert.js.map +1 -0
- package/dist/components/icons/Info.d.ts +5 -0
- package/dist/components/icons/Info.js +6 -0
- package/dist/components/icons/Info.js.map +1 -0
- package/dist/components/icons/Warning.js +1 -1
- package/dist/components/icons/Warning.js.map +1 -1
- package/dist/components/ui/ConfirmDialog.css +42 -0
- package/dist/components/ui/ConfirmDialog.d.ts +11 -0
- package/dist/components/ui/ConfirmDialog.js +12 -0
- package/dist/components/ui/ConfirmDialog.js.map +1 -0
- package/dist/components/ui/Drawer.css +121 -96
- package/dist/components/ui/Drawer.d.ts +15 -6
- package/dist/components/ui/Drawer.js +44 -13
- package/dist/components/ui/Drawer.js.map +1 -1
- package/dist/locales/de.json +15 -0
- package/dist/locales/en.json +15 -0
- package/dist/locales/es.json +15 -0
- package/dist/locales/fr.json +7 -0
- package/dist/locales/it.json +15 -0
- package/dist/styles.css +6 -4
- package/esm/components/CompletionProviderStatus/CompletionProviderStatus.css +33 -23
- package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js +85 -8
- package/esm/components/CompletionProviderStatus/CompletionProviderStatus.js.map +1 -1
- package/esm/components/KnownFacts/KnownFacts.js +1 -1
- package/esm/components/KnownFacts/KnownFacts.js.map +1 -1
- package/esm/components/StartPanel/StartPanel.css +29 -0
- package/esm/components/StartPanel/StartPanel.js +2 -1
- package/esm/components/StartPanel/StartPanel.js.map +1 -1
- package/esm/components/Typing/Typing.js +49 -47
- package/esm/components/Typing/Typing.js.map +1 -1
- package/esm/components/UploadButton/UploadButton.d.ts +1 -0
- package/esm/components/UploadButton/UploadButton.js +142 -3
- package/esm/components/UploadButton/UploadButton.js.map +1 -1
- package/esm/components/icons/Alert.d.ts +5 -0
- package/esm/components/icons/Alert.js +4 -0
- package/esm/components/icons/Alert.js.map +1 -0
- package/esm/components/icons/Info.d.ts +5 -0
- package/esm/components/icons/Info.js +4 -0
- package/esm/components/icons/Info.js.map +1 -0
- package/esm/components/icons/Warning.js +1 -1
- package/esm/components/icons/Warning.js.map +1 -1
- package/esm/components/ui/ConfirmDialog.css +42 -0
- package/esm/components/ui/ConfirmDialog.d.ts +11 -0
- package/esm/components/ui/ConfirmDialog.js +9 -0
- package/esm/components/ui/ConfirmDialog.js.map +1 -0
- package/esm/components/ui/Drawer.css +121 -96
- package/esm/components/ui/Drawer.d.ts +15 -6
- package/esm/components/ui/Drawer.js +45 -14
- package/esm/components/ui/Drawer.js.map +1 -1
- package/esm/locales/de.json +15 -0
- package/esm/locales/en.json +15 -0
- package/esm/locales/es.json +15 -0
- package/esm/locales/fr.json +7 -0
- package/esm/locales/it.json +15 -0
- package/esm/styles.css +6 -4
- package/package.json +1 -1
- package/src/components/BlockedMemoriBadge/__snapshots__/BlockedMemoriBadge.test.tsx.snap +10 -0
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.css +33 -23
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.stories.tsx +274 -21
- package/src/components/CompletionProviderStatus/CompletionProviderStatus.tsx +117 -21
- package/src/components/CompletionProviderStatus/__snapshots__/CompletionProviderStatus.test.tsx.snap +39 -21
- package/src/components/KnownFacts/KnownFacts.tsx +1 -1
- package/src/components/StartPanel/StartPanel.css +29 -0
- package/src/components/StartPanel/StartPanel.tsx +47 -0
- package/src/components/StartPanel/__snapshots__/StartPanel.test.tsx.snap +827 -7
- package/src/components/Typing/Typing.tsx +52 -47
- package/src/components/UploadButton/UploadButton.tsx +206 -5
- package/src/components/UploadButton/__snapshots__/UploadButton.test.tsx.snap +1 -1
- package/src/components/icons/Alert.tsx +31 -0
- package/src/components/icons/Info.tsx +31 -0
- package/src/components/icons/Warning.tsx +2 -1
- package/src/components/layouts/__snapshots__/Chat.test.tsx.snap +74 -0
- package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +148 -0
- package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +74 -0
- package/src/components/layouts/__snapshots__/ZoomedFullBody.test.tsx.snap +74 -0
- package/src/components/ui/ConfirmDialog.css +42 -0
- package/src/components/ui/ConfirmDialog.stories.tsx +216 -0
- package/src/components/ui/ConfirmDialog.test.tsx +124 -0
- package/src/components/ui/ConfirmDialog.tsx +58 -0
- package/src/components/ui/Drawer.css +121 -96
- package/src/components/ui/Drawer.stories.tsx +152 -67
- package/src/components/ui/Drawer.test.tsx +6 -2
- package/src/components/ui/Drawer.tsx +195 -89
- package/src/components/ui/__snapshots__/ConfirmDialog.test.tsx.snap +35 -0
- package/src/locales/de.json +15 -0
- package/src/locales/en.json +15 -0
- package/src/locales/es.json +15 -0
- package/src/locales/fr.json +7 -0
- package/src/locales/it.json +15 -0
- package/src/styles.css +6 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Dialog, Transition } from '@headlessui/react';
|
|
4
|
+
import Button from './Button';
|
|
5
|
+
const ConfirmDialog = ({ isOpen, onClose, onConfirm, title, message, confirmText, cancelText, }) => {
|
|
6
|
+
return (_jsx(Transition, { appear: true, show: isOpen, as: React.Fragment, children: _jsxs(Dialog, { as: "div", className: "memori-confirm-dialog", onClose: onClose, children: [_jsx("div", { className: "memori-confirm-dialog--backdrop" }), _jsx("div", { className: "memori-confirm-dialog--container", children: _jsx(Transition.Child, { as: React.Fragment, enter: "ease-out duration-300", enterFrom: "opacity-0 scale-95", enterTo: "opacity-100 scale-100", leave: "ease-in duration-200", leaveFrom: "opacity-100 scale-100", leaveTo: "opacity-0 scale-95", children: _jsxs(Dialog.Panel, { className: "memori-confirm-dialog--panel", children: [_jsx(Dialog.Title, { className: "memori-confirm-dialog--title", children: title }), _jsx(Dialog.Description, { className: "memori-confirm-dialog--message", children: message }), _jsxs("div", { className: "memori-confirm-dialog--actions", children: [_jsx(Button, { onClick: onClose, children: cancelText }), _jsx(Button, { primary: true, onClick: onConfirm, children: confirmText })] })] }) }) })] }) }));
|
|
7
|
+
};
|
|
8
|
+
export default ConfirmDialog;
|
|
9
|
+
//# sourceMappingURL=ConfirmDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmDialog.js","sourceRoot":"","sources":["../../../src/components/ui/ConfirmDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,MAAM,aAAa,GAQd,CAAC,EACJ,MAAM,EACN,OAAO,EACP,SAAS,EACT,KAAK,EACL,OAAO,EACP,WAAW,EACX,UAAU,GACX,EAAE,EAAE;IACH,OAAO,CACL,KAAC,UAAU,IAAC,MAAM,QAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,CAAC,QAAQ,YACjD,MAAC,MAAM,IAAC,EAAE,EAAC,KAAK,EAAC,SAAS,EAAC,uBAAuB,EAAC,OAAO,EAAE,OAAO,aACjE,cAAK,SAAS,EAAC,iCAAiC,GAAG,EACnD,cAAK,SAAS,EAAC,kCAAkC,YAC/C,KAAC,UAAU,CAAC,KAAK,IACf,EAAE,EAAE,KAAK,CAAC,QAAQ,EAClB,KAAK,EAAC,uBAAuB,EAC7B,SAAS,EAAC,oBAAoB,EAC9B,OAAO,EAAC,uBAAuB,EAC/B,KAAK,EAAC,sBAAsB,EAC5B,SAAS,EAAC,uBAAuB,EACjC,OAAO,EAAC,oBAAoB,YAE5B,MAAC,MAAM,CAAC,KAAK,IAAC,SAAS,EAAC,8BAA8B,aACpD,KAAC,MAAM,CAAC,KAAK,IAAC,SAAS,EAAC,8BAA8B,YACnD,KAAK,GACO,EACf,KAAC,MAAM,CAAC,WAAW,IAAC,SAAS,EAAC,gCAAgC,YAC3D,OAAO,GACW,EACrB,eAAK,SAAS,EAAC,gCAAgC,aAC7C,KAAC,MAAM,IAAC,OAAO,EAAE,OAAO,YAAG,UAAU,GAAU,EAC/C,KAAC,MAAM,IAAC,OAAO,QAAC,OAAO,EAAE,SAAS,YAC/B,WAAW,GACL,IACL,IACO,GACE,GACf,IACC,GACE,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,180 +1,205 @@
|
|
|
1
1
|
.memori-drawer {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
position: relative;
|
|
3
|
+
z-index: 50;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.memori-drawer--backdrop {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
position: fixed;
|
|
8
|
+
z-index: 40;
|
|
9
|
+
top: 0;
|
|
10
|
+
left: 0;
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.memori-drawer--container {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
position: fixed;
|
|
18
|
+
z-index: 50;
|
|
19
|
+
top: 0;
|
|
20
|
+
right: 0;
|
|
21
|
+
bottom: 0;
|
|
22
|
+
left: 0;
|
|
23
|
+
overflow-y: auto;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.memori-drawer--container-scrollable {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
display: flex;
|
|
28
|
+
min-height: 100%;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: center;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.memori-drawer--panel {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
position: relative;
|
|
35
|
+
display: flex;
|
|
36
|
+
width: var(--memori-drawer--width, 100%);
|
|
37
|
+
max-width: 80vw;
|
|
38
|
+
height: 100%;
|
|
39
|
+
min-height: 100vh;
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
padding: 1rem 1.5rem 1.5rem;
|
|
43
|
+
margin-right: 0;
|
|
44
|
+
margin-left: auto;
|
|
45
|
+
background-color: #fff;
|
|
46
|
+
font-family: var(--memori-font-family);
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
@media (min-width: 768px) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
.memori-drawer--panel {
|
|
51
|
+
width: var(--memori-drawer--width-md, 80%);
|
|
52
|
+
max-width: none;
|
|
53
|
+
padding-top: 1.5rem;
|
|
54
|
+
padding-right: 2rem;
|
|
55
|
+
padding-left: 2rem;
|
|
56
|
+
}
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
@media (min-width: 1024px) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
.memori-drawer--panel {
|
|
61
|
+
width: var(--memori-drawer--width-lg, 60%);
|
|
62
|
+
}
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
.memori-drawer--panel.memori-drawer--with-footer {
|
|
64
|
-
|
|
66
|
+
padding-bottom: 0;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.memori-drawer--panel .memori-spin {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
display: flex;
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 100%;
|
|
73
|
+
flex: 1;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
overflow-y: auto;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
|
-
.memori-drawer--panel
|
|
75
|
-
|
|
78
|
+
.memori-drawer--panel > .memori-spin {
|
|
79
|
+
margin-top: -1.75rem;
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
.memori-drawer--panel p {
|
|
79
|
-
|
|
83
|
+
margin: 0 0 1em;
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
h2.memori-drawer--title {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
margin: 0 0 1rem;
|
|
88
|
+
font-size: 1.5rem;
|
|
89
|
+
font-weight: 700;
|
|
86
90
|
}
|
|
87
91
|
|
|
88
92
|
.memori-drawer--panel-left {
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
margin-right: auto;
|
|
94
|
+
margin-left: 0;
|
|
91
95
|
}
|
|
92
96
|
|
|
93
97
|
.memori-drawer--close {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
position: sticky;
|
|
99
|
+
z-index: 70;
|
|
100
|
+
top: 0;
|
|
101
|
+
left: 0;
|
|
102
|
+
padding: 0.5rem;
|
|
103
|
+
margin-top: -1.5rem;
|
|
104
|
+
margin-left: -5.5rem;
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
@media (max-width: 767px) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
108
|
+
.memori-drawer--close {
|
|
109
|
+
left: 0.5rem;
|
|
110
|
+
}
|
|
107
111
|
}
|
|
108
112
|
|
|
109
113
|
.memori-drawer--close button {
|
|
110
|
-
|
|
111
|
-
|
|
114
|
+
border-color: #fff;
|
|
115
|
+
color: #fff;
|
|
112
116
|
}
|
|
113
117
|
|
|
114
118
|
@media (max-width: 767px) {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
119
|
+
.memori-drawer--close button {
|
|
120
|
+
color: #000;
|
|
121
|
+
}
|
|
118
122
|
}
|
|
119
123
|
|
|
120
124
|
.memori-drawer--panel-left .memori-drawer--close {
|
|
121
|
-
|
|
122
|
-
|
|
125
|
+
right: -3.5rem;
|
|
126
|
+
left: auto;
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
@media (max-width: 767px) {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
.memori-drawer--panel-left .memori-drawer--close {
|
|
131
|
+
right: 0.5rem;
|
|
132
|
+
left: auto;
|
|
133
|
+
}
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
.memori-drawer--footer {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
137
|
+
position: sticky;
|
|
138
|
+
bottom: 0;
|
|
139
|
+
left: 0;
|
|
140
|
+
display: flex;
|
|
141
|
+
width: 100%;
|
|
142
|
+
justify-content: flex-end;
|
|
143
|
+
padding-top: 1rem;
|
|
144
|
+
padding-bottom: 1rem;
|
|
145
|
+
border-top: 1px solid rgba(0, 0, 0, 0.25);
|
|
146
|
+
margin-top: auto;
|
|
147
|
+
background-color: #fff;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.memori-drawer--footer-left-action {
|
|
151
|
+
margin-right: auto;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.memori-drawer--footer-actions {
|
|
155
|
+
display: flex;
|
|
156
|
+
gap: 0.5rem;
|
|
144
157
|
}
|
|
145
158
|
|
|
146
|
-
.memori-drawer--footer button+button {
|
|
147
|
-
|
|
159
|
+
.memori-drawer--footer button + button {
|
|
160
|
+
margin-left: 0.5em;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.memori-drawer--content{
|
|
164
|
+
flex: 1;
|
|
165
|
+
padding-top: 12px;
|
|
166
|
+
overflow-y: auto;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.memori-drawer--content--scrollable{
|
|
170
|
+
flex: 1;
|
|
171
|
+
overflow-y: auto;
|
|
148
172
|
}
|
|
149
173
|
|
|
174
|
+
/* Transition classes */
|
|
150
175
|
.ease-out {
|
|
151
|
-
|
|
176
|
+
transition-timing-function: ease-out;
|
|
152
177
|
}
|
|
153
178
|
|
|
154
179
|
.ease-in {
|
|
155
|
-
|
|
180
|
+
transition-timing-function: ease-in;
|
|
156
181
|
}
|
|
157
182
|
|
|
158
183
|
.duration-300 {
|
|
159
|
-
|
|
184
|
+
transition-duration: 300ms;
|
|
160
185
|
}
|
|
161
186
|
|
|
162
187
|
.duration-200 {
|
|
163
|
-
|
|
188
|
+
transition-duration: 200ms;
|
|
164
189
|
}
|
|
165
190
|
|
|
166
191
|
.opacity-0 {
|
|
167
|
-
|
|
192
|
+
opacity: 0;
|
|
168
193
|
}
|
|
169
194
|
|
|
170
195
|
.opacity-100 {
|
|
171
|
-
|
|
196
|
+
opacity: 1;
|
|
172
197
|
}
|
|
173
198
|
|
|
174
199
|
.max-w-0 {
|
|
175
|
-
|
|
200
|
+
max-width: 0;
|
|
176
201
|
}
|
|
177
202
|
|
|
178
203
|
.max-w-80 {
|
|
179
|
-
|
|
204
|
+
max-width: 80%;
|
|
180
205
|
}
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
export interface Props {
|
|
3
|
+
title?: string | React.ReactNode;
|
|
3
4
|
open?: boolean;
|
|
4
|
-
|
|
5
|
+
data?: any;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
width?: number | string;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
footer?: {
|
|
10
|
+
leftAction?: React.ReactNode;
|
|
11
|
+
leftActionClassName?: string;
|
|
12
|
+
onSubmit?: () => void;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
};
|
|
15
|
+
extra?: React.ReactNode;
|
|
5
16
|
className?: string;
|
|
6
|
-
|
|
17
|
+
placement?: 'left' | 'right';
|
|
7
18
|
description?: string | JSX.Element | React.ReactNode;
|
|
8
|
-
children: JSX.Element | React.ReactNode;
|
|
9
|
-
footer?: JSX.Element | React.ReactNode;
|
|
10
19
|
loading?: boolean;
|
|
11
20
|
animated?: boolean;
|
|
12
21
|
closable?: boolean;
|
|
13
|
-
side?: 'left' | 'right';
|
|
14
|
-
width?: string;
|
|
15
22
|
widthMd?: string;
|
|
16
23
|
widthLg?: string;
|
|
24
|
+
confirmDialogTitle?: string;
|
|
25
|
+
confirmDialogMessage?: string;
|
|
17
26
|
}
|
|
18
27
|
declare const Drawer: FC<Props>;
|
|
19
28
|
export default Drawer;
|
|
@@ -1,21 +1,52 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React from 'react';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React, { useEffect, useState, useCallback, } from 'react';
|
|
3
3
|
import { Dialog, Transition } from '@headlessui/react';
|
|
4
4
|
import Spin from './Spin';
|
|
5
5
|
import Button from './Button';
|
|
6
6
|
import Close from '../icons/Close';
|
|
7
7
|
import cx from 'classnames';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
import { useTranslation } from 'react-i18next';
|
|
9
|
+
import ConfirmDialog from './ConfirmDialog';
|
|
10
|
+
const Drawer = ({ title, open = false, data, onClose = () => { }, children, width = '80%', footer, extra, className, placement = 'right', description, loading = false, animated = true, closable = true, widthMd = '80%', widthLg = '60%', confirmDialogTitle, confirmDialogMessage, }) => {
|
|
11
|
+
const [originalData, setOriginalData] = useState(null);
|
|
12
|
+
const [confirmDialogOpen, setConfirmDialogOpen] = useState(false);
|
|
13
|
+
const { t } = useTranslation();
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (open && data && !originalData) {
|
|
16
|
+
setOriginalData(data);
|
|
17
|
+
}
|
|
18
|
+
if (!open) {
|
|
19
|
+
setOriginalData(null);
|
|
20
|
+
}
|
|
21
|
+
}, [open, data, originalData]);
|
|
22
|
+
const checkChanges = useCallback(() => {
|
|
23
|
+
if (!data || Object.keys(data).length === 0) {
|
|
24
|
+
return onClose();
|
|
25
|
+
}
|
|
26
|
+
if (originalData && JSON.stringify(originalData) !== JSON.stringify(data)) {
|
|
27
|
+
setConfirmDialogOpen(true);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
onClose();
|
|
31
|
+
}
|
|
32
|
+
}, [data, originalData, onClose]);
|
|
33
|
+
const handleClose = useCallback(() => {
|
|
34
|
+
checkChanges();
|
|
35
|
+
}, [checkChanges]);
|
|
36
|
+
const handleConfirmUnsavedChanges = useCallback(() => {
|
|
37
|
+
setConfirmDialogOpen(false);
|
|
38
|
+
onClose();
|
|
39
|
+
}, [onClose]);
|
|
40
|
+
return (_jsxs(_Fragment, { children: [_jsx(ConfirmDialog, { isOpen: confirmDialogOpen, onClose: () => setConfirmDialogOpen(false), onConfirm: handleConfirmUnsavedChanges, title: confirmDialogTitle || t('confirmDialog.title'), message: confirmDialogMessage || t('confirmDialog.message'), confirmText: t('confirm') || 'Confirm', cancelText: t('cancel') || 'Cancel' }), _jsx(Transition, { appear: true, show: open, as: React.Fragment, children: _jsxs(Dialog, { open: open, onClose: handleClose, className: cx('memori-drawer', className), children: [_jsx(Transition.Child, { as: React.Fragment, enter: "ease-out duration-300", enterFrom: "opacity-0", enterTo: "opacity-100", leave: "ease-in duration-200", leaveFrom: "opacity-100", leaveTo: "opacity-0", children: _jsx("div", { className: "memori-drawer--backdrop" }) }), _jsx("div", { className: "memori-drawer--container", children: _jsx("div", { className: "memori-drawer--container-scrollable", children: _jsx(Transition.Child, { static: true, as: React.Fragment, enter: "ease-out duration-300", enterFrom: animated ? 'max-w-0 opacity-0' : 'opacity-0', enterTo: "max-w-80 opacity-100", leave: "ease-in duration-200", leaveFrom: "max-w-80 opacity-100", leaveTo: animated ? 'max-w-0 opacity-0' : 'opacity-0', children: _jsxs(Dialog.Panel, { className: cx('memori-drawer--panel', {
|
|
41
|
+
'memori-drawer--panel-left': placement === 'left',
|
|
42
|
+
'memori-drawer--with-footer': !!footer,
|
|
43
|
+
}), style: {
|
|
44
|
+
'--memori-drawer--width': width,
|
|
45
|
+
'--memori-drawer--width--lg': widthLg,
|
|
46
|
+
'--memori-drawer--width--md': widthMd,
|
|
47
|
+
}, children: [closable && (_jsx("div", { className: "memori-drawer--close", children: _jsx(Button, { shape: "circle", outlined: true, icon: _jsx(Close, {}), onClick: handleClose }) })), _jsx(Spin, { spinning: loading, children: _jsxs("div", { className: "memori-drawer--content", children: [title && (_jsx(Dialog.Title, { className: "memori-drawer--title", children: title })), description && (_jsx(Dialog.Description, { className: "memori-drawer--description", children: description })), _jsx("div", { className: "memori-drawer--content--scrollable", children: children })] }) }), footer && (_jsxs("div", { className: "memori-drawer--footer", children: [footer.leftAction && (_jsx("div", { className: 'memori-drawer--footer-left-action ' +
|
|
48
|
+
(footer.leftActionClassName || ''), children: footer.leftAction })), footer.onSubmit && (_jsxs("div", { className: "memori-drawer--footer-actions", children: [_jsx(Button, { outlined: true, onClick: handleClose, children: t('cancel') }), _jsx(Button, { htmlType: "submit", onClick: footer.onSubmit, loading: footer.loading, className: "memori-drawer--footer-confirm", children: t('confirm') })] })), extra && (_jsx("div", { className: "memori-drawer--extra", children: extra }))] }))] }) }) }) })] }) })] }));
|
|
49
|
+
};
|
|
50
|
+
Drawer.displayName = 'Drawer';
|
|
20
51
|
export default Drawer;
|
|
21
52
|
//# sourceMappingURL=Drawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../../src/components/ui/Drawer.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../../src/components/ui/Drawer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAEZ,SAAS,EACT,QAAQ,EAER,WAAW,GAEZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AA4B5C,MAAM,MAAM,GAAc,CAAC,EACzB,KAAK,EACL,IAAI,GAAG,KAAK,EACZ,IAAI,EACJ,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,EAClB,QAAQ,EACR,KAAK,GAAG,KAAK,EACb,MAAM,EACN,KAAK,EACL,SAAS,EACT,SAAS,GAAG,OAAO,EACnB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AAM,IAAC,QAAQ,QAAC,OAAO,EAAE,WAAW,YAClC,CAAC,CAAC,QAAQ,CAAC,GACL,EACT,KAAC,MAAM,IACL,QAAQ,EAAC,QAAQ,EACjB,OAAO,EAAE,MAAM,CAAC,QAAQ,EACxB,OAAO,EAAE,MAAM,CAAC,OAAO,EACvB,SAAS,EAAC,+BAA+B,YAExC,CAAC,CAAC,SAAS,CAAC,GACN,IACL,CACP,EACA,KAAK,IAAI,CACR,cAAK,SAAS,EAAC,sBAAsB,YAAE,KAAK,GAAO,CACpD,IACG,CACP,IACY,GACE,GACf,GACF,IACC,GACE,IACZ,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE9B,eAAe,MAAM,CAAC"}
|
package/esm/locales/de.json
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"nothingFound": "Nichts gefunden",
|
|
39
39
|
"venue": "Veranstaltungsort",
|
|
40
40
|
"searchVenue": "Veranstaltungsort suchen...",
|
|
41
|
+
"privacyPolicy": "Datenschutzbestimmungen",
|
|
41
42
|
"memoriBlockedTitle": "Blockiert",
|
|
42
43
|
"memoriBlockedUntil": "Agent blockiert bis {{date}}",
|
|
43
44
|
"memoriBlockedAnon": "Momentan \"{{name}}„Kann nicht antworten, komm hierher zurück {{date}}",
|
|
@@ -49,6 +50,9 @@
|
|
|
49
50
|
"receiverLabel": "Zugewiesen an",
|
|
50
51
|
"completionsEnabled": "Fortschrittliche KI kann mit automatisch generierten Antworten reagieren, die manchmal falsche Informationen enthalten können",
|
|
51
52
|
"completionProviderDown": "Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. ",
|
|
53
|
+
"completionProviderMajorOutage": "Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.",
|
|
54
|
+
"completionProviderPartialOutage": "Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.",
|
|
55
|
+
"completionProviderDegraded": "Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.",
|
|
52
56
|
"completionProviderFallbackName": "ein externer Anbieter",
|
|
53
57
|
"completionProviderCheckStatusPage": "Überprüfen Sie die Statusseite",
|
|
54
58
|
"boardOfExperts": "Expertengremium",
|
|
@@ -69,6 +73,10 @@
|
|
|
69
73
|
"deepThoughtPreDisclaimerUnlogged": "Melden Sie sich an, um Deep Thought zu aktivieren.",
|
|
70
74
|
"deepThoughtPreDisclaimerNotAllowed": "Deep Thought ist deaktiviert, da Sie der Nutzung nicht zugestimmt haben. Sie können dies jederzeit in Ihren Kontoeinstellungen ändern.",
|
|
71
75
|
"notEnoughCredits": "Der Autor dieses Zwillings verfügt nicht über genügend Credits, um Ihre Frage zu beantworten.",
|
|
76
|
+
"confirmDialog": {
|
|
77
|
+
"title": "Möchten Sie diese Seite verlassen?",
|
|
78
|
+
"message": "Die Änderungen, die Sie vorgenommen haben, werden verloren."
|
|
79
|
+
},
|
|
72
80
|
"knownFacts": {
|
|
73
81
|
"title": "Bekannte Fakten",
|
|
74
82
|
"description": "Einzelheiten zu den Informationen, die zwischen Ihnen und geteilt werden {{memoriName}}",
|
|
@@ -110,6 +118,13 @@
|
|
|
110
118
|
"micButtonPopoverListening": "Klicken Sie auf die Schaltfläche, um das Sprechen zu stoppen",
|
|
111
119
|
"pageInstructExplanation": "Um mir neue Dinge beizubringen, klicken Sie auf die Schaltfläche „ANLEITEN“, um zu beginnen",
|
|
112
120
|
"pageTryMeExplanation": "Um mit mir zu sprechen, klicken Sie auf die Schaltfläche START, um zu beginnen",
|
|
121
|
+
"pagePrivacyExplanation": "Die Konversationen sind sichtbar von dem Autor des Agenten",
|
|
122
|
+
"pagePrivacyExplanationList": {
|
|
123
|
+
"allConversations": "Alle Konversationen mit diesem Agenten sind sichtbar von dem Autor des Agenten",
|
|
124
|
+
"anonymousUser": "Für anonyme Benutzer: der Autor wird den Inhalt der Konversation und Ihre IP-Adresse sehen",
|
|
125
|
+
"registeredUser": "Für registrierte Benutzer: der Autor wird den Inhalt der Konversation und Ihren Benutzernamen sehen",
|
|
126
|
+
"authorUsesInfo": "Der Autor verwendet diese Informationen, um die Funktionen des Agenten zu verbessern und Ihnen einen besseren Service anzubieten. Wenn Sie die Konversation fortsetzen, stimmen Sie diesen Bedingungen zu."
|
|
127
|
+
},
|
|
113
128
|
"instructButton": "WEISE MICH AN",
|
|
114
129
|
"tryMeButton": "START",
|
|
115
130
|
"chatHistory": "Chatverlauf",
|
package/esm/locales/en.json
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"nothingFound": "Nothing found",
|
|
39
39
|
"venue": "Venue",
|
|
40
40
|
"searchVenue": "Search venue...",
|
|
41
|
+
"privacyPolicy": "Privacy policy",
|
|
41
42
|
"memoriBlockedTitle": "Blocked",
|
|
42
43
|
"memoriBlockedUntil": "Agent blocked until {{date}}",
|
|
43
44
|
"memoriBlockedAnon": "Currently \"{{name}}\" can't answer, come back here on {{date}}",
|
|
@@ -49,6 +50,9 @@
|
|
|
49
50
|
"receiverLabel": "Assigned to",
|
|
50
51
|
"completionsEnabled": "Advanced AI, can respond with automatically generated answers that may sometimes contain incorrect information",
|
|
51
52
|
"completionProviderDown": "This agent is integrated with a generative AI from {{provider}}, but it is currently unavailable. Try again later.",
|
|
53
|
+
"completionProviderMajorOutage": "This agent is integrated with a generative AI from {{provider}}, but it is completely down. This feature will not be available until the service is restored.",
|
|
54
|
+
"completionProviderPartialOutage": "This agent is integrated with a generative AI from {{provider}}, but it is experiencing partial outages. Some features may be unavailable or perform poorly.",
|
|
55
|
+
"completionProviderDegraded": "This agent is integrated with a generative AI from {{provider}}, but it is performing slower than usual. Responses may take longer or be less accurate.",
|
|
52
56
|
"completionProviderFallbackName": "an external provider",
|
|
53
57
|
"completionProviderCheckStatusPage": "Check status page",
|
|
54
58
|
"boardOfExperts": "Board of experts",
|
|
@@ -69,6 +73,10 @@
|
|
|
69
73
|
"deepThoughtPreDisclaimerUnlogged": "Log in to enable Deep Thought.",
|
|
70
74
|
"deepThoughtPreDisclaimerNotAllowed": "Deep Thought is disabled since you didn't consent its usage, you can change this any time in your account settings.",
|
|
71
75
|
"notEnoughCredits": "The author of this agent does not have enough credits to answer your question.",
|
|
76
|
+
"confirmDialog": {
|
|
77
|
+
"title": "Do you want to leave this page?",
|
|
78
|
+
"message": "The changes you made will be lost."
|
|
79
|
+
},
|
|
72
80
|
"knownFacts": {
|
|
73
81
|
"title": "Known facts",
|
|
74
82
|
"description": "Details of the information shared between you and {{memoriName}}",
|
|
@@ -110,6 +118,13 @@
|
|
|
110
118
|
"micButtonPopoverListening": "Click the button to stop speak",
|
|
111
119
|
"pageInstructExplanation": "To teach me new things click on the INSTRUCT ME button to get started",
|
|
112
120
|
"pageTryMeExplanation": "To talk to me click on the START button to get started",
|
|
121
|
+
"pagePrivacyExplanation": "The conversations are visible by the author of the agent",
|
|
122
|
+
"pagePrivacyExplanationList": {
|
|
123
|
+
"allConversations": "All conversations with this agent are visible to the author of the agent",
|
|
124
|
+
"anonymousUser": "For anonymous users: the author will see the content of the conversation and your IP address",
|
|
125
|
+
"registeredUser": "For registered users: the author will see the content of the conversation and your username",
|
|
126
|
+
"authorUsesInfo": "The author uses this information to improve the features of the agent and to provide you with a better service. Continuing the conversation, you accept these conditions."
|
|
127
|
+
},
|
|
113
128
|
"instructButton": "INSTRUCT ME",
|
|
114
129
|
"tryMeButton": "START",
|
|
115
130
|
"resumeButton": "RESUME",
|
package/esm/locales/es.json
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"nothingFound": "No se encontró nada",
|
|
39
39
|
"venue": "Evento",
|
|
40
40
|
"searchVenue": "Buscar lugar...",
|
|
41
|
+
"privacyPolicy": "Política de privacidad",
|
|
41
42
|
"memoriBlockedTitle": "Obstruido",
|
|
42
43
|
"memoriBlockedUntil": "Agent bloqueado hasta {{date}}",
|
|
43
44
|
"memoriBlockedAnon": "Actualmente \"{{name}}\"No puedo responder, vuelve aquí. {{date}}",
|
|
@@ -49,6 +50,9 @@
|
|
|
49
50
|
"receiverLabel": "Asignado a",
|
|
50
51
|
"completionsEnabled": "La IA avanzada puede responder con respuestas generadas automáticamente que a veces pueden contener información incorrecta.",
|
|
51
52
|
"completionProviderDown": "Este Agent está integrado con una IA generativa de {{provider}}, pero actualmente no está disponible. ",
|
|
53
|
+
"completionProviderMajorOutage": "Este Agent está integrado con una IA generativa de {{provider}}, pero al momento no está disponible. No será posible utilizar esta funcionalidad hasta que el servicio se restaure.",
|
|
54
|
+
"completionProviderPartialOutage": "Este Agent está integrado con una IA generativa de {{provider}}, pero está experimentando interrupciones parciales. Algunas funcionalidades pueden no estar disponibles o funcionar de manera no óptima.",
|
|
55
|
+
"completionProviderDegraded": "Este Agent está integrado con una IA generativa de {{provider}}, pero está funcionando más lentamente de lo normal. Las respuestas pueden tomar más tiempo o ser menos precisas.",
|
|
52
56
|
"completionProviderFallbackName": "un proveedor externo",
|
|
53
57
|
"completionProviderCheckStatusPage": "Comprobar página de estado",
|
|
54
58
|
"boardOfExperts": "junta de expertos",
|
|
@@ -69,6 +73,10 @@
|
|
|
69
73
|
"deepThoughtPreDisclaimerUnlogged": "Inicie sesión para habilitar Pensamiento profundo.",
|
|
70
74
|
"deepThoughtPreDisclaimerNotAllowed": "Deep Thought está deshabilitado porque usted no dio su consentimiento para su uso; puede cambiar esto en cualquier momento en la configuración de su cuenta.",
|
|
71
75
|
"notEnoughCredits": "El autor de este Gemelo no tiene suficientes créditos para responder a tu pregunta.",
|
|
76
|
+
"confirmDialog": {
|
|
77
|
+
"title": "¿Quieres salir de esta página?",
|
|
78
|
+
"message": "Los cambios que has realizado se perderán."
|
|
79
|
+
},
|
|
72
80
|
"knownFacts": {
|
|
73
81
|
"title": "hechos conocidos",
|
|
74
82
|
"description": "Detalles de la información compartida entre usted y {{memoriName}}",
|
|
@@ -110,6 +118,13 @@
|
|
|
110
118
|
"micButtonPopoverListening": "Haga clic en el botón para dejar de hablar.",
|
|
111
119
|
"pageInstructExplanation": "Para enseñarme cosas nuevas, haga clic en el botón INSTRUIRME para comenzar.",
|
|
112
120
|
"pageTryMeExplanation": "Para hablar conmigo haga clic en el botón INICIO para comenzar",
|
|
121
|
+
"pagePrivacyExplanation": "Las conversaciones son visibles por el autor del agente",
|
|
122
|
+
"pagePrivacyExplanationList": {
|
|
123
|
+
"allConversations": "Todas las conversaciones con este agente son visibles por el autor del agente",
|
|
124
|
+
"anonymousUser": "Para usuarios anónimos: el autor verá el contenido de la conversación y su dirección IP",
|
|
125
|
+
"registeredUser": "Para usuarios registrados: el autor verá el contenido de la conversación y su nombre de usuario",
|
|
126
|
+
"authorUsesInfo": "El autor utiliza estas informaciones para mejorar las funciones del agente y para ofrecerte un mejor servicio. Continuando la conversación, acepta estas condiciones."
|
|
127
|
+
},
|
|
113
128
|
"instructButton": "INSTRUÍME",
|
|
114
129
|
"tryMeButton": "COMENZAR",
|
|
115
130
|
"chatHistory": "Historial de chat",
|
package/esm/locales/fr.json
CHANGED
|
@@ -49,6 +49,9 @@
|
|
|
49
49
|
"receiverLabel": "Assigné à",
|
|
50
50
|
"completionsEnabled": "L'IA avancée peut répondre avec des réponses générées automatiquement qui peuvent parfois contenir des informations incorrectes",
|
|
51
51
|
"completionProviderDown": "Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. ",
|
|
52
|
+
"completionProviderMajorOutage": "Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.",
|
|
53
|
+
"completionProviderPartialOutage": "Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.",
|
|
54
|
+
"completionProviderDegraded": "Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.",
|
|
52
55
|
"completionProviderFallbackName": "un prestataire externe",
|
|
53
56
|
"completionProviderCheckStatusPage": "Vérifier la page d'état",
|
|
54
57
|
"boardOfExperts": "Conseil d'experts",
|
|
@@ -69,6 +72,10 @@
|
|
|
69
72
|
"deepThoughtPreDisclaimerUnlogged": "Connectez-vous pour activer Deep Thought.",
|
|
70
73
|
"deepThoughtPreDisclaimerNotAllowed": "Deep Thought est désactivé car vous n'avez pas consenti à son utilisation, vous pouvez le modifier à tout moment dans les paramètres de votre compte.",
|
|
71
74
|
"notEnoughCredits": "L'auteur de ce Agent n'a pas suffisamment de crédits pour répondre à votre question.",
|
|
75
|
+
"confirmDialog": {
|
|
76
|
+
"title": "Voulez-vous quitter cette page ?",
|
|
77
|
+
"message": "Les modifications que vous avez apportées seront perdues."
|
|
78
|
+
},
|
|
72
79
|
"knownFacts": {
|
|
73
80
|
"title": "Faits connus",
|
|
74
81
|
"description": "Détails des informations partagées entre vous et {{memoriName}}",
|