@memori.ai/memori-react 6.3.1 → 6.4.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 +24 -0
- package/dist/components/Chat/Chat.js +1 -1
- package/dist/components/Chat/Chat.js.map +1 -1
- package/dist/components/ChatBubble/ChatBubble.css +16 -6
- package/dist/components/ChatBubble/ChatBubble.d.ts +2 -0
- package/dist/components/ChatBubble/ChatBubble.js +15 -7
- package/dist/components/ChatBubble/ChatBubble.js.map +1 -1
- package/dist/components/Header/Header.css +7 -1
- package/dist/components/KnownFacts/KnownFacts.js.map +1 -1
- package/dist/components/MemoriWidget/MemoriWidget.js +67 -2
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/components/Snippet/Snippet.d.ts +3 -1
- package/dist/components/Snippet/Snippet.js +3 -3
- package/dist/components/Snippet/Snippet.js.map +1 -1
- package/dist/components/WhyThisAnswer/WhyThisAnswer.css +73 -0
- package/dist/components/WhyThisAnswer/WhyThisAnswer.d.ts +11 -0
- package/dist/components/WhyThisAnswer/WhyThisAnswer.js +62 -0
- package/dist/components/WhyThisAnswer/WhyThisAnswer.js.map +1 -0
- package/dist/components/icons/QuestionHelp.d.ts +5 -0
- package/dist/components/icons/QuestionHelp.js +6 -0
- package/dist/components/icons/QuestionHelp.js.map +1 -0
- package/dist/components/ui/Expandable.css +15 -0
- package/dist/components/ui/Expandable.d.ts +13 -0
- package/dist/components/ui/Expandable.js +44 -0
- package/dist/components/ui/Expandable.js.map +1 -0
- package/dist/components/ui/Table.css +2 -2
- package/dist/locales/en.json +3 -0
- package/dist/locales/it.json +3 -0
- package/dist/styles.css +5 -2
- package/esm/components/Chat/Chat.js +1 -1
- package/esm/components/Chat/Chat.js.map +1 -1
- package/esm/components/ChatBubble/ChatBubble.css +16 -6
- package/esm/components/ChatBubble/ChatBubble.d.ts +2 -0
- package/esm/components/ChatBubble/ChatBubble.js +11 -3
- package/esm/components/ChatBubble/ChatBubble.js.map +1 -1
- package/esm/components/Header/Header.css +7 -1
- package/esm/components/KnownFacts/KnownFacts.js.map +1 -1
- package/esm/components/MemoriWidget/MemoriWidget.js +67 -2
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/components/Snippet/Snippet.d.ts +3 -1
- package/esm/components/Snippet/Snippet.js +3 -3
- package/esm/components/Snippet/Snippet.js.map +1 -1
- package/esm/components/WhyThisAnswer/WhyThisAnswer.css +73 -0
- package/esm/components/WhyThisAnswer/WhyThisAnswer.d.ts +11 -0
- package/esm/components/WhyThisAnswer/WhyThisAnswer.js +59 -0
- package/esm/components/WhyThisAnswer/WhyThisAnswer.js.map +1 -0
- package/esm/components/icons/QuestionHelp.d.ts +5 -0
- package/esm/components/icons/QuestionHelp.js +4 -0
- package/esm/components/icons/QuestionHelp.js.map +1 -0
- package/esm/components/ui/Expandable.css +15 -0
- package/esm/components/ui/Expandable.d.ts +13 -0
- package/esm/components/ui/Expandable.js +41 -0
- package/esm/components/ui/Expandable.js.map +1 -0
- package/esm/components/ui/Table.css +2 -2
- package/esm/locales/en.json +3 -0
- package/esm/locales/it.json +3 -0
- package/esm/styles.css +5 -2
- package/package.json +2 -2
- package/src/components/Chat/Chat.tsx +1 -0
- package/src/components/ChatBubble/ChatBubble.css +16 -6
- package/src/components/ChatBubble/ChatBubble.test.tsx +10 -1
- package/src/components/ChatBubble/ChatBubble.tsx +37 -7
- package/src/components/ChatBubble/__snapshots__/ChatBubble.test.tsx.snap +2 -2
- package/src/components/Header/Header.css +7 -1
- package/src/components/KnownFacts/KnownFacts.tsx +0 -78
- package/src/components/MemoriWidget/MemoriWidget.tsx +71 -2
- package/src/components/Snippet/Snippet.stories.tsx +16 -0
- package/src/components/Snippet/Snippet.test.tsx +30 -0
- package/src/components/Snippet/Snippet.tsx +20 -10
- package/src/components/Snippet/__snapshots__/Snippet.test.tsx.snap +168 -0
- package/src/components/WhyThisAnswer/WhyThisAnswer.css +73 -0
- package/src/components/WhyThisAnswer/WhyThisAnswer.stories.tsx +136 -0
- package/src/components/WhyThisAnswer/WhyThisAnswer.test.tsx +124 -0
- package/src/components/WhyThisAnswer/WhyThisAnswer.tsx +151 -0
- package/src/components/WhyThisAnswer/__snapshots__/WhyThisAnswer.test.tsx.snap +13 -0
- package/src/components/icons/QuestionHelp.tsx +30 -0
- package/src/components/ui/Expandable.css +15 -0
- package/src/components/ui/Expandable.stories.tsx +53 -0
- package/src/components/ui/Expandable.test.tsx +107 -0
- package/src/components/ui/Expandable.tsx +97 -0
- package/src/components/ui/Table.css +2 -2
- package/src/components/ui/__snapshots__/Expandable.test.tsx.snap +159 -0
- package/src/locales/en.json +3 -0
- package/src/locales/it.json +3 -0
- package/src/mocks/data.ts +58 -0
- package/src/styles.css +5 -2
package/src/mocks/data.ts
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
Medium,
|
|
3
3
|
Memori,
|
|
4
4
|
Message,
|
|
5
|
+
Memory,
|
|
5
6
|
Integration,
|
|
6
7
|
Tenant,
|
|
7
8
|
DialogState,
|
|
@@ -334,3 +335,60 @@ export const venue: Venue = {
|
|
|
334
335
|
placeName: 'Altedo, Bologna, Italy',
|
|
335
336
|
uncertainty: 2,
|
|
336
337
|
};
|
|
338
|
+
|
|
339
|
+
export const memoryQuestion: Memory = {
|
|
340
|
+
memoryID: '08c0697d-f7f3-4a47-9970-aff75f01fb6c',
|
|
341
|
+
memoryType: 'Question',
|
|
342
|
+
lastRead: undefined,
|
|
343
|
+
readOccurrences: undefined,
|
|
344
|
+
receiverID: undefined,
|
|
345
|
+
receiverTag: undefined,
|
|
346
|
+
receiverName: undefined,
|
|
347
|
+
media: [
|
|
348
|
+
{
|
|
349
|
+
mediumID: 'c6851968-5d4d-409a-ae75-f22ec077efcd',
|
|
350
|
+
mimeType: 'text/html',
|
|
351
|
+
url: 'https://rawmaterial.it/it',
|
|
352
|
+
title: 'RawMaterial',
|
|
353
|
+
},
|
|
354
|
+
],
|
|
355
|
+
title: 'sei umano',
|
|
356
|
+
titleVariants: ['sei reale'],
|
|
357
|
+
answers: [
|
|
358
|
+
{
|
|
359
|
+
text: 'se ti dico si ci credi?',
|
|
360
|
+
preformatted: false,
|
|
361
|
+
creationTimestamp: '2022-03-23T09:37:25.410377',
|
|
362
|
+
creationName: '6cfec2bd-a73f-4a21-b7ff-dd92d6db59c4',
|
|
363
|
+
lastChangeTimestamp: '2022-03-23T09:37:25.410406',
|
|
364
|
+
lastChangeName: '6cfec2bd-a73f-4a21-b7ff-dd92d6db59c4',
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
text: 'probabilmente lo sono più di te',
|
|
368
|
+
preformatted: false,
|
|
369
|
+
creationTimestamp: '2022-03-23T09:37:36.957656',
|
|
370
|
+
creationName: '6cfec2bd-a73f-4a21-b7ff-dd92d6db59c4',
|
|
371
|
+
lastChangeTimestamp: '2022-03-23T09:37:36.957657',
|
|
372
|
+
lastChangeName: '6cfec2bd-a73f-4a21-b7ff-dd92d6db59c4',
|
|
373
|
+
},
|
|
374
|
+
],
|
|
375
|
+
date: undefined,
|
|
376
|
+
dateUncertaintyDays: undefined,
|
|
377
|
+
placeName: undefined,
|
|
378
|
+
placeLatitude: undefined,
|
|
379
|
+
placeLongitude: undefined,
|
|
380
|
+
placeUncertaintyKm: undefined,
|
|
381
|
+
preformatted: false,
|
|
382
|
+
conclusive: false,
|
|
383
|
+
notPickable: false,
|
|
384
|
+
contextVarsToSet: {
|
|
385
|
+
SUBJECT: 'TRAVEL',
|
|
386
|
+
},
|
|
387
|
+
contextVarsToMatch: {
|
|
388
|
+
SUBJECT: 'TRANSPORTS',
|
|
389
|
+
},
|
|
390
|
+
creationTimestamp: '2022-03-23T09:37:16.568149',
|
|
391
|
+
creationName: '6cfec2bd-a73f-4a21-b7ff-dd92d6db59c4',
|
|
392
|
+
lastChangeTimestamp: '2022-03-23T09:37:36.957695',
|
|
393
|
+
lastChangeName: '6cfec2bd-a73f-4a21-b7ff-dd92d6db59c4',
|
|
394
|
+
};
|
package/src/styles.css
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@import url('./components/ui/Tooltip.css');
|
|
8
8
|
@import url('./components/ui/Select.css');
|
|
9
9
|
@import url('./components/ui/Table.css');
|
|
10
|
+
@import url('./components/ui/Expandable.css');
|
|
10
11
|
|
|
11
12
|
@import url('./components/CompletionProviderStatus/CompletionProviderStatus.css');
|
|
12
13
|
@import url('./components/PoweredBy/PoweredBy.css');
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
@import url('./components/KnownFacts/KnownFacts.css');
|
|
42
43
|
@import url('./components/LoginDrawer/LoginDrawer.css');
|
|
43
44
|
@import url('./components/VenueWidget/VenueWidget.css');
|
|
45
|
+
@import url('./components/WhyThisAnswer/WhyThisAnswer.css');
|
|
44
46
|
@import url('./components/MemoriWidget/MemoriWidget.css');
|
|
45
47
|
|
|
46
48
|
@import url('https://fonts.bunny.net/css?family=lexend-deca:200,400,700');
|
|
@@ -76,11 +78,12 @@ body.sb-show-main #root,
|
|
|
76
78
|
--memori-chat-bubble-bg: #fff;
|
|
77
79
|
--memori-chat-user-bubble-bg: var(--memori-primary);
|
|
78
80
|
--memori-text-color: #000;
|
|
81
|
+
--memori-border-radius: 5px;
|
|
79
82
|
--memori-button-bg: #fff;
|
|
80
83
|
--memori-button-text: #000;
|
|
81
84
|
--memori-button-padding: 0.5rem 1.5rem;
|
|
82
85
|
--memori-button-border-color: #d9d9d9;
|
|
83
|
-
--memori-button-radius:
|
|
86
|
+
--memori-button-radius: var(--memori-border-radius);
|
|
84
87
|
--memori-button-box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
|
|
85
88
|
--memori-blur-background: 0px;
|
|
86
89
|
--memori-drawer--width: 80%;
|
|
@@ -99,4 +102,4 @@ body.sb-show-main #root,
|
|
|
99
102
|
.mobile-hidden {
|
|
100
103
|
display: none;
|
|
101
104
|
}
|
|
102
|
-
}
|
|
105
|
+
}
|