@memori.ai/memori-react 8.4.1 → 8.5.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.
Files changed (143) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/components/LoginDrawer/LoginDrawer.d.ts +1 -2
  3. package/dist/components/LoginDrawer/LoginDrawer.js +2 -105
  4. package/dist/components/LoginDrawer/LoginDrawer.js.map +1 -1
  5. package/dist/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.css +0 -4
  6. package/dist/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.d.ts +1 -0
  7. package/dist/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.js +3 -3
  8. package/dist/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.js.map +1 -1
  9. package/dist/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyButtonWithDropdown.js +110 -8
  10. package/dist/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyButtonWithDropdown.js.map +1 -1
  11. package/dist/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyMenuItem.js +3 -0
  12. package/dist/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyMenuItem.js.map +1 -1
  13. package/dist/components/MemoriArtifactSystem/components/ArtifactActions/hooks/useCopyArtifact.js +42 -38
  14. package/dist/components/MemoriArtifactSystem/components/ArtifactActions/hooks/useCopyArtifact.js.map +1 -1
  15. package/dist/components/MemoriArtifactSystem/components/ArtifactActions/styles.css +1 -2
  16. package/dist/components/MemoriArtifactSystem/components/ArtifactActions/types.d.ts +2 -1
  17. package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.css +428 -15
  18. package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.d.ts +1 -0
  19. package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.js +47 -8
  20. package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.js.map +1 -1
  21. package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/components/TabSwitch.css +150 -0
  22. package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/components/TabSwitch.d.ts +9 -0
  23. package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/components/TabSwitch.js +35 -0
  24. package/dist/components/MemoriArtifactSystem/components/ArtifactDrawer/components/TabSwitch.js.map +1 -0
  25. package/dist/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.css +2 -0
  26. package/dist/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.css +1 -1
  27. package/dist/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.d.ts +2 -1
  28. package/dist/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.js +15 -26
  29. package/dist/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.js.map +1 -1
  30. package/dist/components/MemoriArtifactSystem/context/ArtifactContext.js +1 -5
  31. package/dist/components/MemoriArtifactSystem/context/ArtifactContext.js.map +1 -1
  32. package/dist/components/MemoriWidget/MemoriWidget.js +1 -1
  33. package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
  34. package/dist/components/icons/Close.d.ts +2 -1
  35. package/dist/components/icons/Close.js +1 -1
  36. package/dist/components/icons/Close.js.map +1 -1
  37. package/dist/components/icons/MenuVertical.d.ts +7 -0
  38. package/dist/components/icons/MenuVertical.js +6 -0
  39. package/dist/components/icons/MenuVertical.js.map +1 -0
  40. package/dist/components/layouts/Chat.js +1 -1
  41. package/dist/components/layouts/Chat.js.map +1 -1
  42. package/dist/components/layouts/FullPage.js +1 -1
  43. package/dist/components/layouts/FullPage.js.map +1 -1
  44. package/dist/components/layouts/ZoomedFullBody.js +1 -1
  45. package/dist/components/layouts/ZoomedFullBody.js.map +1 -1
  46. package/dist/components/layouts/chat.css +73 -85
  47. package/dist/components/ui/Drawer.d.ts +1 -0
  48. package/dist/components/ui/Drawer.js +2 -2
  49. package/dist/components/ui/Drawer.js.map +1 -1
  50. package/dist/locales/de.json +37 -1
  51. package/dist/locales/en.json +37 -1
  52. package/dist/locales/es.json +37 -1
  53. package/dist/locales/fr.json +37 -1
  54. package/dist/locales/it.json +37 -1
  55. package/esm/components/LoginDrawer/LoginDrawer.d.ts +1 -2
  56. package/esm/components/LoginDrawer/LoginDrawer.js +3 -106
  57. package/esm/components/LoginDrawer/LoginDrawer.js.map +1 -1
  58. package/esm/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.css +0 -4
  59. package/esm/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.d.ts +1 -0
  60. package/esm/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.js +3 -3
  61. package/esm/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.js.map +1 -1
  62. package/esm/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyButtonWithDropdown.js +110 -8
  63. package/esm/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyButtonWithDropdown.js.map +1 -1
  64. package/esm/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyMenuItem.js +3 -0
  65. package/esm/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyMenuItem.js.map +1 -1
  66. package/esm/components/MemoriArtifactSystem/components/ArtifactActions/hooks/useCopyArtifact.js +42 -38
  67. package/esm/components/MemoriArtifactSystem/components/ArtifactActions/hooks/useCopyArtifact.js.map +1 -1
  68. package/esm/components/MemoriArtifactSystem/components/ArtifactActions/styles.css +1 -2
  69. package/esm/components/MemoriArtifactSystem/components/ArtifactActions/types.d.ts +2 -1
  70. package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.css +428 -15
  71. package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.d.ts +1 -0
  72. package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.js +48 -9
  73. package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.js.map +1 -1
  74. package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/components/TabSwitch.css +150 -0
  75. package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/components/TabSwitch.d.ts +9 -0
  76. package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/components/TabSwitch.js +32 -0
  77. package/esm/components/MemoriArtifactSystem/components/ArtifactDrawer/components/TabSwitch.js.map +1 -0
  78. package/esm/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.css +2 -0
  79. package/esm/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.css +1 -1
  80. package/esm/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.d.ts +2 -1
  81. package/esm/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.js +16 -27
  82. package/esm/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.js.map +1 -1
  83. package/esm/components/MemoriArtifactSystem/context/ArtifactContext.js +1 -5
  84. package/esm/components/MemoriArtifactSystem/context/ArtifactContext.js.map +1 -1
  85. package/esm/components/MemoriWidget/MemoriWidget.js +1 -1
  86. package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
  87. package/esm/components/icons/Close.d.ts +2 -1
  88. package/esm/components/icons/Close.js +1 -1
  89. package/esm/components/icons/Close.js.map +1 -1
  90. package/esm/components/icons/MenuVertical.d.ts +7 -0
  91. package/esm/components/icons/MenuVertical.js +4 -0
  92. package/esm/components/icons/MenuVertical.js.map +1 -0
  93. package/esm/components/layouts/Chat.js +1 -1
  94. package/esm/components/layouts/Chat.js.map +1 -1
  95. package/esm/components/layouts/FullPage.js +1 -1
  96. package/esm/components/layouts/FullPage.js.map +1 -1
  97. package/esm/components/layouts/ZoomedFullBody.js +1 -1
  98. package/esm/components/layouts/ZoomedFullBody.js.map +1 -1
  99. package/esm/components/layouts/chat.css +73 -85
  100. package/esm/components/ui/Drawer.d.ts +1 -0
  101. package/esm/components/ui/Drawer.js +2 -2
  102. package/esm/components/ui/Drawer.js.map +1 -1
  103. package/esm/locales/de.json +37 -1
  104. package/esm/locales/en.json +37 -1
  105. package/esm/locales/es.json +37 -1
  106. package/esm/locales/fr.json +37 -1
  107. package/esm/locales/it.json +37 -1
  108. package/package.json +1 -1
  109. package/src/components/FilePreview/__snapshots__/FilePreview.test.tsx.snap +9 -0
  110. package/src/components/LoginDrawer/LoginDrawer.tsx +46 -221
  111. package/src/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.css +0 -4
  112. package/src/components/MemoriArtifactSystem/components/ArtifactActions/ArtifactActions.tsx +7 -5
  113. package/src/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyButtonWithDropdown.tsx +148 -12
  114. package/src/components/MemoriArtifactSystem/components/ArtifactActions/components/CopyMenuItem.tsx +3 -0
  115. package/src/components/MemoriArtifactSystem/components/ArtifactActions/hooks/useCopyArtifact.ts +54 -47
  116. package/src/components/MemoriArtifactSystem/components/ArtifactActions/styles.css +1 -2
  117. package/src/components/MemoriArtifactSystem/components/ArtifactActions/types.ts +2 -1
  118. package/src/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.css +428 -15
  119. package/src/components/MemoriArtifactSystem/components/ArtifactDrawer/ArtifactDrawer.tsx +240 -42
  120. package/src/components/MemoriArtifactSystem/components/ArtifactDrawer/components/TabSwitch.css +150 -0
  121. package/src/components/MemoriArtifactSystem/components/ArtifactDrawer/components/TabSwitch.tsx +79 -0
  122. package/src/components/MemoriArtifactSystem/components/ArtifactHandler/ArtifactHandler.css +2 -0
  123. package/src/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.css +1 -1
  124. package/src/components/MemoriArtifactSystem/components/ArtifactPreview/ArtifactPreview.tsx +2 -41
  125. package/src/components/MemoriArtifactSystem/context/ArtifactContext.tsx +1 -5
  126. package/src/components/MemoriWidget/MemoriWidget.tsx +0 -1
  127. package/src/components/icons/Close.tsx +8 -1
  128. package/src/components/icons/MenuVertical.tsx +29 -0
  129. package/src/components/layouts/Chat.tsx +3 -1
  130. package/src/components/layouts/FullPage.tsx +7 -2
  131. package/src/components/layouts/ZoomedFullBody.tsx +8 -3
  132. package/src/components/layouts/__snapshots__/Chat.test.tsx.snap +1 -1
  133. package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +112 -104
  134. package/src/components/layouts/__snapshots__/HiddenChat.test.tsx.snap +3 -0
  135. package/src/components/layouts/__snapshots__/ZoomedFullBody.test.tsx.snap +56 -52
  136. package/src/components/layouts/chat.css +73 -85
  137. package/src/components/ui/Drawer.tsx +3 -1
  138. package/src/components/ui/__snapshots__/Alert.test.tsx.snap +3 -0
  139. package/src/locales/de.json +37 -1
  140. package/src/locales/en.json +37 -1
  141. package/src/locales/es.json +37 -1
  142. package/src/locales/fr.json +37 -1
  143. package/src/locales/it.json +38 -1
@@ -6,18 +6,19 @@
6
6
  background: none;
7
7
  }
8
8
 
9
- .memori-widget > .memori-spin.memori-chat-layout {
9
+ .memori-widget > .memori-spin.memori-chat-layout {
10
10
  display: flex;
11
11
  height: 100%;
12
12
  flex-direction: column;
13
13
  }
14
14
 
15
- .memori-chat-layout--main, .memori-chat-layout--controls{
16
- min-height: calc(100% - 25px);
17
- }
18
-
19
15
  .memori-chat-layout--header {
20
16
  text-align: right;
17
+ transition: all 0.05s ease-in-out;
18
+ }
19
+
20
+ .memori-chat-layout--header-with-artifact {
21
+ display: none;
21
22
  }
22
23
 
23
24
  .memori-chat-layout .memori-header {
@@ -25,17 +26,16 @@
25
26
  width: auto;
26
27
  }
27
28
 
28
- .memori-chat-layout-controls-hide{
29
+ .memori-chat-layout-controls-hide {
29
30
  display: none;
30
31
  }
31
32
 
32
- .memori-chat-layout-artifact-panel-full-screen{
33
+ .memori-chat-layout-artifact-panel-full-screen {
33
34
  width: 100%;
34
35
  height: 100%;
35
- flex:1 1;
36
+ flex: 1 1;
36
37
  }
37
38
 
38
-
39
39
  .memori-chat-layout--main {
40
40
  position: relative;
41
41
  display: flex;
@@ -51,7 +51,9 @@
51
51
  }
52
52
 
53
53
  .memori-chat-layout--main-with-artifact {
54
+ display: flex;
54
55
  flex-direction: row;
56
+ align-items: center;
55
57
  justify-content: space-between;
56
58
  padding: 1rem;
57
59
  gap: 1rem;
@@ -62,13 +64,17 @@
62
64
  z-index: 5;
63
65
  overflow: hidden;
64
66
  min-width: 0;
67
+ height: calc(100% - 50px);
68
+ max-height: calc(100% - 50px);
65
69
  flex: 1;
70
+ padding-bottom: 3rem;
66
71
  transition: all 0.05s ease-in-out;
67
72
  }
68
73
 
69
74
  .memori-chat-layout--controls-with-artifact {
70
75
  max-height: 100%;
71
- flex: 0 0 45%;
76
+ flex: 0 0 50%;
77
+ padding-bottom: 2.5rem;
72
78
  margin: 0;
73
79
  }
74
80
 
@@ -79,7 +85,7 @@
79
85
  width: 100%;
80
86
  min-width: 0;
81
87
  height: 100%;
82
- flex: 0 0 45%;
88
+ flex: 0 0 50%;
83
89
  flex-direction: column;
84
90
  border: 1px solid rgba(255, 255, 255, 0.3);
85
91
  border-radius: 12px;
@@ -108,8 +114,6 @@
108
114
  }
109
115
  }
110
116
 
111
-
112
-
113
117
  .memori-chat-layout .memori--avatar {
114
118
  top: 0;
115
119
  }
@@ -134,6 +138,10 @@
134
138
  bottom: auto;
135
139
  }
136
140
 
141
+ .memori-chat-layout--controls .memori-chat--wrapper {
142
+ height: calc(100% - 1rem);
143
+ }
144
+
137
145
  @media (max-width: 870px) {
138
146
  .memori-chat-layout .memori--powered-by {
139
147
  top: 3.5rem;
@@ -148,11 +156,6 @@
148
156
  margin: 0 auto;
149
157
  }
150
158
 
151
-
152
- .memori-chat-layout--controls .memori-chat--wrapper {
153
- height: calc(75vh - 1rem);
154
- }
155
-
156
159
  .memori-chat-layout .memori-chat--content {
157
160
  padding: 0;
158
161
  }
@@ -180,6 +183,10 @@
180
183
  .memori-chat-layout--controls .memori-chat--wrapper {
181
184
  padding: 0;
182
185
  }
186
+
187
+ .memori--powered-by {
188
+ display: none;
189
+ }
183
190
  }
184
191
 
185
192
  @media (max-width: 480px) {
@@ -225,8 +232,13 @@
225
232
  }
226
233
 
227
234
  @keyframes background-shimmer {
228
- 0%, 100% { background-position: 200% 200%; }
229
- 50% { background-position: -200% -200%; }
235
+ 0%,
236
+ 100% {
237
+ background-position: 200% 200%;
238
+ }
239
+ 50% {
240
+ background-position: -200% -200%;
241
+ }
230
242
  }
231
243
 
232
244
  /* Enhanced micro-interactions */
@@ -268,8 +280,12 @@
268
280
  }
269
281
 
270
282
  @keyframes loading-shimmer {
271
- 0% { left: -100%; }
272
- 100% { left: 100%; }
283
+ 0% {
284
+ left: -100%;
285
+ }
286
+ 100% {
287
+ left: 100%;
288
+ }
273
289
  }
274
290
 
275
291
  /* Success animations */
@@ -278,9 +294,15 @@
278
294
  }
279
295
 
280
296
  @keyframes success-pulse {
281
- 0% { transform: scale(1); }
282
- 50% { transform: scale(1.02); }
283
- 100% { transform: scale(1); }
297
+ 0% {
298
+ transform: scale(1);
299
+ }
300
+ 50% {
301
+ transform: scale(1.02);
302
+ }
303
+ 100% {
304
+ transform: scale(1);
305
+ }
284
306
  }
285
307
 
286
308
  /* Error states */
@@ -289,9 +311,16 @@
289
311
  }
290
312
 
291
313
  @keyframes error-shake {
292
- 0%, 100% { transform: translateX(0); }
293
- 25% { transform: translateX(-4px); }
294
- 75% { transform: translateX(4px); }
314
+ 0%,
315
+ 100% {
316
+ transform: translateX(0);
317
+ }
318
+ 25% {
319
+ transform: translateX(-4px);
320
+ }
321
+ 75% {
322
+ transform: translateX(4px);
323
+ }
295
324
  }
296
325
 
297
326
  /* Focus states for accessibility */
@@ -305,11 +334,11 @@
305
334
  .memori-chat-layout--main {
306
335
  border: 2px solid #333;
307
336
  }
308
-
337
+
309
338
  .memori-chat-layout--controls {
310
339
  border: 2px solid #333;
311
340
  }
312
-
341
+
313
342
  .memori-chat-layout--artifact-panel {
314
343
  border: 2px solid #333;
315
344
  }
@@ -324,40 +353,39 @@
324
353
  animation: none;
325
354
  transition: none;
326
355
  }
327
-
356
+
328
357
  .memori-chat-layout--main:hover {
329
358
  transform: none;
330
359
  }
331
-
360
+
332
361
  .memori-chat-layout--controls:hover {
333
362
  transform: none;
334
363
  }
335
-
364
+
336
365
  .memori-chat-layout--artifact-panel:hover {
337
366
  transform: none;
338
367
  }
339
-
368
+
340
369
  .memori-chat-layout--artifact-panel-enter {
341
370
  animation: none;
342
371
  opacity: 1;
343
372
  transform: translateX(0) scale(1);
344
373
  }
345
-
374
+
346
375
  .memori-chat-layout--artifact-drawer {
347
376
  transition: none;
348
377
  }
349
-
378
+
350
379
  .memori-chat-layout--artifact-drawer .memori-artifact-drawer {
351
380
  animation: none;
352
381
  transition: none;
353
382
  }
354
-
355
- .memori-chat-layout--artifact-drawer[data-headlessui-state~="open"] .memori-artifact-drawer {
383
+
384
+ .memori-chat-layout--artifact-drawer[data-headlessui-state~='open'] .memori-artifact-drawer {
356
385
  transform: translateX(0);
357
386
  }
358
387
  }
359
388
 
360
-
361
389
  .memori-chat-layout--artifact-drawer {
362
390
  position: fixed;
363
391
  z-index: 1000;
@@ -379,13 +407,12 @@
379
407
 
380
408
  /* Mobile drawer animations */
381
409
 
382
-
383
- .memori-chat-layout--artifact-drawer[data-headlessui-state~="open"] {
410
+ .memori-chat-layout--artifact-drawer[data-headlessui-state~='open'] {
384
411
  opacity: 1;
385
412
  visibility: visible;
386
413
  }
387
414
 
388
- .memori-chat-layout--artifact-drawer[data-headlessui-state~="open"] .memori-artifact-drawer {
415
+ .memori-chat-layout--artifact-drawer[data-headlessui-state~='open'] .memori-artifact-drawer {
389
416
  transform: translateX(0);
390
417
  }
391
418
 
@@ -412,7 +439,8 @@
412
439
  }
413
440
 
414
441
  /* Adjust chat layout when drawer is open */
415
- .memori-chat-layout:has(.memori-chat-layout--artifact-drawer .memori-artifact-drawer[data-headlessui-state~="open"]) .memori-chat-layout--controls {
442
+ .memori-chat-layout:has(.memori-chat-layout--artifact-drawer .memori-artifact-drawer[data-headlessui-state~='open'])
443
+ .memori-chat-layout--controls {
416
444
  margin-right: 50%;
417
445
  filter: blur(1px);
418
446
  opacity: 0.8;
@@ -420,49 +448,9 @@
420
448
  transition: all 0.05s ease-in-out;
421
449
  }
422
450
 
423
- .memori-chat-layout:has(.memori-chat-layout--artifact-drawer .memori-artifact-drawer[data-headlessui-state~="open"]) .memori-chat-layout--main {
451
+ .memori-chat-layout:has(.memori-chat-layout--artifact-drawer .memori-artifact-drawer[data-headlessui-state~='open'])
452
+ .memori-chat-layout--main {
424
453
  backdrop-filter: blur(5px);
425
454
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(248, 250, 252, 0.02) 100%);
426
455
  transition: all 0.05s ease-in-out;
427
456
  }
428
-
429
- /* Mobile adjustments */
430
- @media (max-width: 1024px) {
431
- .memori-chat-layout--main {
432
- flex-direction: column !important;
433
- padding: 0.5rem !important;
434
- backdrop-filter: blur(10px) !important;
435
- background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(248, 250, 252, 0.02) 100%) !important;
436
- gap: 0.5rem !important;
437
- }
438
-
439
- .memori-chat-layout--artifact-panel {
440
- display: none !important;
441
- }
442
-
443
- .memori-chat-layout--controls {
444
- max-height: calc(100% - 50px) !important;
445
- flex: 1 !important;
446
- border: 1px solid rgba(255, 255, 255, 0.3) !important;
447
- margin: 0 !important;
448
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
449
- }
450
-
451
- /* Remove all drawer animations and effects on mobile */
452
- .memori-chat-layout:has(.memori-chat-layout--artifact-drawer .memori-artifact-drawer[data-headlessui-state~="open"]) .memori-chat-layout--controls {
453
- margin-right: 0;
454
- filter: none;
455
- opacity: 1;
456
- transform: none;
457
- }
458
-
459
- .memori-chat-layout:has(.memori-chat-layout--artifact-drawer .memori-artifact-drawer[data-headlessui-state~="open"]) .memori-chat-layout--main {
460
- backdrop-filter: none;
461
- background: none;
462
- }
463
-
464
- .memori-chat-layout--artifact-drawer {
465
- backdrop-filter: none !important;
466
- background: none !important;
467
- }
468
- }
@@ -24,6 +24,7 @@ export interface Props {
24
24
  confirmDialogTitle?: string;
25
25
  confirmDialogMessage?: string;
26
26
  showBackdrop?: boolean;
27
+ preventBackdropClose?: boolean;
27
28
  }
28
29
  declare const Drawer: FC<Props>;
29
30
  export default Drawer;
@@ -10,7 +10,7 @@ const Close_1 = tslib_1.__importDefault(require("../icons/Close"));
10
10
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
11
11
  const react_i18next_1 = require("react-i18next");
12
12
  const ConfirmDialog_1 = tslib_1.__importDefault(require("./ConfirmDialog"));
13
- const Drawer = ({ title, open = false, data, onClose = () => { }, children, width = '80%', footer, showBackdrop = true, extra, className, placement = 'right', description, loading = false, animated = true, closable = true, widthMd = '80%', widthLg = '60%', confirmDialogTitle, confirmDialogMessage, }) => {
13
+ const Drawer = ({ title, open = false, data, onClose = () => { }, children, width = '80%', footer, showBackdrop = true, extra, className, placement = 'right', description, loading = false, animated = true, closable = true, widthMd = '80%', widthLg = '60%', confirmDialogTitle, confirmDialogMessage, preventBackdropClose = false, }) => {
14
14
  const [originalData, setOriginalData] = (0, react_1.useState)(null);
15
15
  const [confirmDialogOpen, setConfirmDialogOpen] = (0, react_1.useState)(false);
16
16
  const { t } = (0, react_i18next_1.useTranslation)();
@@ -40,7 +40,7 @@ const Drawer = ({ title, open = false, data, onClose = () => { }, children, widt
40
40
  setConfirmDialogOpen(false);
41
41
  onClose();
42
42
  }, [onClose]);
43
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { 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' }), (0, jsx_runtime_1.jsx)(react_2.Transition, { appear: true, show: open, as: react_1.default.Fragment, children: (0, jsx_runtime_1.jsxs)(react_2.Dialog, { open: open, onClose: handleClose, className: (0, classnames_1.default)('memori-drawer', className), children: [showBackdrop && ((0, jsx_runtime_1.jsx)(react_2.Transition.Child, { as: react_1.default.Fragment, enter: "ease-out duration-300", enterFrom: "opacity-0", enterTo: "opacity-100", leave: "ease-in duration-200", leaveFrom: "opacity-100", leaveTo: "opacity-0", children: (0, jsx_runtime_1.jsx)("div", { className: "memori-drawer--backdrop" }) })), (0, jsx_runtime_1.jsx)("div", { className: "memori-drawer--container", children: (0, jsx_runtime_1.jsx)("div", { className: "memori-drawer--container-scrollable", children: (0, jsx_runtime_1.jsx)(react_2.Transition.Child, { static: true, as: react_1.default.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: (0, jsx_runtime_1.jsxs)(react_2.Dialog.Panel, { className: (0, classnames_1.default)('memori-drawer--panel', {
43
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { 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' }), (0, jsx_runtime_1.jsx)(react_2.Transition, { appear: true, show: open, as: react_1.default.Fragment, children: (0, jsx_runtime_1.jsxs)(react_2.Dialog, { open: open, onClose: preventBackdropClose ? () => { } : handleClose, className: (0, classnames_1.default)('memori-drawer', className), children: [showBackdrop && ((0, jsx_runtime_1.jsx)(react_2.Transition.Child, { as: react_1.default.Fragment, enter: "ease-out duration-300", enterFrom: "opacity-0", enterTo: "opacity-100", leave: "ease-in duration-200", leaveFrom: "opacity-100", leaveTo: "opacity-0", children: (0, jsx_runtime_1.jsx)("div", { className: "memori-drawer--backdrop" }) })), (0, jsx_runtime_1.jsx)("div", { className: "memori-drawer--container", children: (0, jsx_runtime_1.jsx)("div", { className: "memori-drawer--container-scrollable", children: (0, jsx_runtime_1.jsx)(react_2.Transition.Child, { static: true, as: react_1.default.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: (0, jsx_runtime_1.jsxs)(react_2.Dialog.Panel, { className: (0, classnames_1.default)('memori-drawer--panel', {
44
44
  'memori-drawer--panel-left': placement === 'left',
45
45
  'memori-drawer--with-footer': !!footer,
46
46
  }), style: {
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../../src/components/ui/Drawer.tsx"],"names":[],"mappings":";;;;AAAA,uDAOe;AACf,6CAAuD;AACvD,0DAA0B;AAC1B,8DAA8B;AAC9B,mEAAmC;AACnC,oEAA4B;AAC5B,iDAA+C;AAC/C,4EAA4C;AA6B5C,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,YAAY,GAAG,IAAI,EACnB,KAAK,EACL,SAAS,EACT,SAAS,GAAG,OAAO,EACnB,WAAW,EACX,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,IAAI,EACf,QAAQ,GAAG,IAAI,EACf,OAAO,GAAG,KAAK,EACf,OAAO,GAAG,KAAK,EACf,kBAAkB,EAClB,oBAAoB,GACd,EAAE,EAAE;IACV,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAM,IAAI,CAAC,CAAC;IA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ExC,CAAC,CAAC,SAAS,CAAC,GACN,IACL,CACP,EACA,KAAK,IAAI,CACR,gCAAK,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,kBAAe,MAAM,CAAC"}
@@ -188,7 +188,43 @@
188
188
  "generatedAt": "Generiert am",
189
189
  "open": "Öffnen",
190
190
  "code": "Code",
191
- "preview": "Vorschau"
191
+ "preview": "Vorschau",
192
+ "copied": "Kopiert!",
193
+ "error": "Fehler",
194
+ "generatingPdf": "PDF wird generiert...",
195
+ "copying": "Kopiere...",
196
+ "moreCopyOptions": "Weitere Kopieroptionen",
197
+ "copyAs": "Kopieren als",
198
+ "downloadAsMarkdown": "Als Markdown herunterladen",
199
+ "downloadRawMarkdownText": "Rohmarkdown-Text herunterladen",
200
+ "downloadAsPdf": "Als PDF herunterladen",
201
+ "exportAsPdfDocument": "Als PDF-Dokument exportieren",
202
+ "downloadAsHtml": "Als HTML herunterladen",
203
+ "downloadFormattedHtml": "Formatiertes HTML herunterladen",
204
+ "viewMode": "Ansichtsmodus",
205
+ "codeMode": "Code-Modus",
206
+ "refresh": "Aktualisieren",
207
+ "share": "Teilen",
208
+ "downloadAsJson": "Als JSON herunterladen",
209
+ "downloadJsonData": "JSON-Daten herunterladen",
210
+ "downloadAsPng": "Als PNG herunterladen",
211
+ "downloadPngImage": "PNG-Bild herunterladen",
212
+ "downloadAsJpeg": "Als JPEG herunterladen",
213
+ "downloadJpegImage": "JPEG-Bild herunterladen",
214
+ "downloadAsGif": "Als GIF herunterladen",
215
+ "downloadGifImage": "GIF-Bild herunterladen",
216
+ "downloadAsWebp": "Als WebP herunterladen",
217
+ "downloadWebpImage": "WebP-Bild herunterladen",
218
+ "copyAsSvg": "Als SVG kopieren",
219
+ "copySvgSourceCode": "SVG-Quellcode kopieren",
220
+ "copyAsPlainText": "Als Klartext kopieren",
221
+ "copyAsText": "Als Text kopieren",
222
+ "copyAsLanguage": "Als {{language}} kopieren",
223
+ "copyLanguageCode": "{{language}}-Code kopieren",
224
+ "copyWithoutSyntaxHighlighting": "Ohne Syntaxhervorhebung kopieren",
225
+ "copyTextContent": "Textinhalt kopieren",
226
+ "pdfExportNotSupported": "PDF-Export wird in diesem Browser nicht unterstützt",
227
+ "popupBlocked": "Popup blockiert! Bitte aktivieren Sie Popups zum Drucken."
192
228
  },
193
229
  "upload": {
194
230
  "loginRequired": "Login erforderlich",
@@ -199,7 +199,43 @@
199
199
  "copy": "Copy",
200
200
  "open": "Open",
201
201
  "code": "Code",
202
- "preview": "Preview"
202
+ "preview": "Preview",
203
+ "copied": "Copied!",
204
+ "error": "Error",
205
+ "generatingPdf": "Generating PDF...",
206
+ "copying": "Copying...",
207
+ "moreCopyOptions": "More copy options",
208
+ "copyAs": "Copy as",
209
+ "downloadAsMarkdown": "Download as Markdown",
210
+ "downloadRawMarkdownText": "Download raw markdown text",
211
+ "downloadAsPdf": "Download as PDF",
212
+ "exportAsPdfDocument": "Export as PDF document",
213
+ "downloadAsHtml": "Download as HTML",
214
+ "downloadFormattedHtml": "Download formatted HTML",
215
+ "viewMode": "View Mode",
216
+ "codeMode": "Code Mode",
217
+ "refresh": "Refresh",
218
+ "share": "Share",
219
+ "downloadAsJson": "Download as JSON",
220
+ "downloadJsonData": "Download JSON data",
221
+ "downloadAsPng": "Download as PNG",
222
+ "downloadPngImage": "Download PNG image",
223
+ "downloadAsJpeg": "Download as JPEG",
224
+ "downloadJpegImage": "Download JPEG image",
225
+ "downloadAsGif": "Download as GIF",
226
+ "downloadGifImage": "Download GIF image",
227
+ "downloadAsWebp": "Download as WebP",
228
+ "downloadWebpImage": "Download WebP image",
229
+ "copyAsSvg": "Copy as SVG",
230
+ "copySvgSourceCode": "Copy SVG source code",
231
+ "copyAsPlainText": "Copy as Plain Text",
232
+ "copyAsText": "Copy as text",
233
+ "copyAsLanguage": "Copy as {{language}}",
234
+ "copyLanguageCode": "Copy {{language}} code",
235
+ "copyWithoutSyntaxHighlighting": "Copy without syntax highlighting",
236
+ "copyTextContent": "Copy text content",
237
+ "pdfExportNotSupported": "PDF export is not supported in this browser",
238
+ "popupBlocked": "Popup blocked! Please enable popups to print."
203
239
  },
204
240
  "upload": {
205
241
  "loginRequired": "Login required",
@@ -188,7 +188,43 @@
188
188
  "generatedAt": "Generado el",
189
189
  "open": "Abrir",
190
190
  "code": "Código",
191
- "preview": "Vista previa"
191
+ "preview": "Vista previa",
192
+ "copied": "¡Copiado!",
193
+ "error": "Error",
194
+ "generatingPdf": "Generando PDF...",
195
+ "copying": "Copiando...",
196
+ "moreCopyOptions": "Más opciones de copia",
197
+ "copyAs": "Copiar como",
198
+ "downloadAsMarkdown": "Descargar como Markdown",
199
+ "downloadRawMarkdownText": "Descargar texto markdown sin formato",
200
+ "downloadAsPdf": "Descargar como PDF",
201
+ "exportAsPdfDocument": "Exportar como documento PDF",
202
+ "downloadAsHtml": "Descargar como HTML",
203
+ "downloadFormattedHtml": "Descargar HTML formateado",
204
+ "viewMode": "Modo Vista",
205
+ "codeMode": "Modo Código",
206
+ "refresh": "Actualizar",
207
+ "share": "Compartir",
208
+ "downloadAsJson": "Descargar como JSON",
209
+ "downloadJsonData": "Descargar datos JSON",
210
+ "downloadAsPng": "Descargar como PNG",
211
+ "downloadPngImage": "Descargar imagen PNG",
212
+ "downloadAsJpeg": "Descargar como JPEG",
213
+ "downloadJpegImage": "Descargar imagen JPEG",
214
+ "downloadAsGif": "Descargar como GIF",
215
+ "downloadGifImage": "Descargar imagen GIF",
216
+ "downloadAsWebp": "Descargar como WebP",
217
+ "downloadWebpImage": "Descargar imagen WebP",
218
+ "copyAsSvg": "Copiar como SVG",
219
+ "copySvgSourceCode": "Copiar código fuente SVG",
220
+ "copyAsPlainText": "Copiar como texto plano",
221
+ "copyAsText": "Copiar como texto",
222
+ "copyAsLanguage": "Copiar como {{language}}",
223
+ "copyLanguageCode": "Copiar código {{language}}",
224
+ "copyWithoutSyntaxHighlighting": "Copiar sin resaltado de sintaxis",
225
+ "copyTextContent": "Copiar contenido de texto",
226
+ "pdfExportNotSupported": "La exportación PDF no es compatible con este navegador",
227
+ "popupBlocked": "¡Popup bloqueado! Por favor, habilita los popups para imprimir."
192
228
  },
193
229
  "upload": {
194
230
  "loginRequired": "Connexion requise",
@@ -197,7 +197,43 @@
197
197
  "generatedAt": "Généré le",
198
198
  "open": "Ouvrir",
199
199
  "code": "Code",
200
- "preview": "Aperçu"
200
+ "preview": "Aperçu",
201
+ "copied": "Copié !",
202
+ "error": "Erreur",
203
+ "generatingPdf": "Génération du PDF...",
204
+ "copying": "Copie en cours...",
205
+ "moreCopyOptions": "Plus d'options de copie",
206
+ "copyAs": "Copier en tant que",
207
+ "downloadAsMarkdown": "Télécharger en Markdown",
208
+ "downloadRawMarkdownText": "Télécharger le texte markdown brut",
209
+ "downloadAsPdf": "Télécharger en PDF",
210
+ "exportAsPdfDocument": "Exporter en document PDF",
211
+ "downloadAsHtml": "Télécharger en HTML",
212
+ "downloadFormattedHtml": "Télécharger le HTML formaté",
213
+ "viewMode": "Mode Affichage",
214
+ "codeMode": "Mode Code",
215
+ "refresh": "Actualiser",
216
+ "share": "Partager",
217
+ "downloadAsJson": "Télécharger en JSON",
218
+ "downloadJsonData": "Télécharger les données JSON",
219
+ "downloadAsPng": "Télécharger en PNG",
220
+ "downloadPngImage": "Télécharger l'image PNG",
221
+ "downloadAsJpeg": "Télécharger en JPEG",
222
+ "downloadJpegImage": "Télécharger l'image JPEG",
223
+ "downloadAsGif": "Télécharger en GIF",
224
+ "downloadGifImage": "Télécharger l'image GIF",
225
+ "downloadAsWebp": "Télécharger en WebP",
226
+ "downloadWebpImage": "Télécharger l'image WebP",
227
+ "copyAsSvg": "Copier en SVG",
228
+ "copySvgSourceCode": "Copier le code source SVG",
229
+ "copyAsPlainText": "Copier en texte brut",
230
+ "copyAsText": "Copier en texte",
231
+ "copyAsLanguage": "Copier en {{language}}",
232
+ "copyLanguageCode": "Copier le code {{language}}",
233
+ "copyWithoutSyntaxHighlighting": "Copier sans coloration syntaxique",
234
+ "copyTextContent": "Copier le contenu texte",
235
+ "pdfExportNotSupported": "L'exportation PDF n'est pas prise en charge dans ce navigateur",
236
+ "popupBlocked": "Popup bloqué ! Veuillez activer les popups pour imprimer."
201
237
  },
202
238
  "upload": {
203
239
  "loginRequired": "Connexion requise",
@@ -202,7 +202,43 @@
202
202
  "generatedAt": "Generato il",
203
203
  "open": "Apri",
204
204
  "code": "Codice",
205
- "preview": "Anteprima"
205
+ "preview": "Anteprima",
206
+ "copied": "Copiato!",
207
+ "error": "Errore",
208
+ "generatingPdf": "Generazione PDF...",
209
+ "copying": "Copia in corso...",
210
+ "moreCopyOptions": "Altre opzioni di copia",
211
+ "copyAs": "Copia come",
212
+ "downloadAsMarkdown": "Scarica come Markdown",
213
+ "downloadRawMarkdownText": "Scarica testo markdown grezzo",
214
+ "downloadAsPdf": "Scarica come PDF",
215
+ "exportAsPdfDocument": "Esporta come documento PDF",
216
+ "downloadAsHtml": "Scarica come HTML",
217
+ "downloadFormattedHtml": "Scarica HTML formattato",
218
+ "viewMode": "Modalità Visualizzazione",
219
+ "codeMode": "Modalità Codice",
220
+ "refresh": "Aggiorna",
221
+ "share": "Condividi",
222
+ "downloadAsJson": "Scarica come JSON",
223
+ "downloadJsonData": "Scarica dati JSON",
224
+ "downloadAsPng": "Scarica come PNG",
225
+ "downloadPngImage": "Scarica immagine PNG",
226
+ "downloadAsJpeg": "Scarica come JPEG",
227
+ "downloadJpegImage": "Scarica immagine JPEG",
228
+ "downloadAsGif": "Scarica come GIF",
229
+ "downloadGifImage": "Scarica immagine GIF",
230
+ "downloadAsWebp": "Scarica come WebP",
231
+ "downloadWebpImage": "Scarica immagine WebP",
232
+ "copyAsSvg": "Copia come SVG",
233
+ "copySvgSourceCode": "Copia codice sorgente SVG",
234
+ "copyAsPlainText": "Copia come testo normale",
235
+ "copyAsText": "Copia come testo",
236
+ "copyAsLanguage": "Copia come {{language}}",
237
+ "copyLanguageCode": "Copia codice {{language}}",
238
+ "copyWithoutSyntaxHighlighting": "Copia senza evidenziazione sintassi",
239
+ "copyTextContent": "Copia contenuto testo",
240
+ "pdfExportNotSupported": "L'esportazione PDF non è supportata in questo browser",
241
+ "popupBlocked": "Popup bloccato! Abilita i popup per stampare."
206
242
  },
207
243
  "media": {
208
244
  "title": "Titolo",
@@ -10,11 +10,10 @@ export interface Props {
10
10
  onLogout: () => void;
11
11
  tenant: Tenant;
12
12
  apiClient: ReturnType<typeof memoriApiClient>;
13
- baseURL?: string;
14
13
  __TEST__signup?: boolean;
15
14
  __TEST__needMissingData?: boolean;
16
15
  __TEST__waitingForOtp?: boolean;
17
16
  __TEST__changePwd?: boolean;
18
17
  }
19
- declare const LoginDrawer: ({ open, onClose, onLogin, onLogout, user, loginToken, tenant, apiClient, baseURL, __TEST__signup, __TEST__needMissingData, __TEST__waitingForOtp, __TEST__changePwd, }: Props) => JSX.Element;
18
+ declare const LoginDrawer: ({ open, onClose, onLogin, onLogout, user, loginToken, tenant, apiClient, __TEST__signup, __TEST__needMissingData, __TEST__waitingForOtp, __TEST__changePwd, }: Props) => JSX.Element;
20
19
  export default LoginDrawer;