@memori.ai/memori-react 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/components/Avatar/Avatar.css +0 -1
- package/dist/components/Blob/Blob.css +6 -1
- package/dist/components/ChangeMode/ChangeMode.css +1 -1
- package/dist/components/Chat/Chat.css +3 -2
- package/dist/components/ChatBubble/ChatBubble.css +1 -1
- package/dist/components/ChatInputs/ChatInputs.css +2 -2
- package/dist/components/ChatTextArea/ChatTextArea.css +7 -3
- package/dist/components/DateSelector/DateSelector.css +17 -15
- package/dist/components/ExportHistoryButton/ExportHistoryButton.css +1 -1
- package/dist/components/FeedbackButtons/FeedbackButtons.css +4 -4
- package/dist/components/Header/Header.css +2 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/ImageUpload/ImageUpload.css +2 -3
- package/dist/components/MediaWidget/MediaItemWidget.css +2 -0
- package/dist/components/MediaWidget/MediaWidget.css +1 -1
- package/dist/components/MemoriWidget/MemoriWidget.css +1 -2
- package/dist/components/MicrophoneButton/MicrophoneButton.css +10 -4
- package/dist/components/StartPanel/StartPanel.css +1 -1
- package/dist/components/layouts/totem.css +49 -8
- package/dist/components/ui/Button.css +1 -1
- package/dist/components/ui/Checkbox.css +0 -2
- package/dist/components/ui/Drawer.css +1 -1
- package/dist/components/ui/Modal.css +1 -1
- package/dist/components/ui/Select.css +17 -16
- package/dist/components/ui/Tooltip.css +11 -7
- package/dist/helpers/translations.js +1 -2
- package/dist/helpers/translations.js.map +1 -1
- package/dist/styles.css +2 -2
- package/esm/components/Avatar/Avatar.css +0 -1
- package/esm/components/Blob/Blob.css +6 -1
- package/esm/components/ChangeMode/ChangeMode.css +1 -1
- package/esm/components/Chat/Chat.css +3 -2
- package/esm/components/ChatBubble/ChatBubble.css +1 -1
- package/esm/components/ChatInputs/ChatInputs.css +2 -2
- package/esm/components/ChatTextArea/ChatTextArea.css +7 -3
- package/esm/components/DateSelector/DateSelector.css +17 -15
- package/esm/components/ExportHistoryButton/ExportHistoryButton.css +1 -1
- package/esm/components/FeedbackButtons/FeedbackButtons.css +4 -4
- package/esm/components/Header/Header.css +2 -1
- package/esm/components/Header/Header.js +1 -1
- package/esm/components/Header/Header.js.map +1 -1
- package/esm/components/ImageUpload/ImageUpload.css +2 -3
- package/esm/components/MediaWidget/MediaItemWidget.css +2 -0
- package/esm/components/MediaWidget/MediaWidget.css +1 -1
- package/esm/components/MemoriWidget/MemoriWidget.css +1 -2
- package/esm/components/MicrophoneButton/MicrophoneButton.css +10 -4
- package/esm/components/StartPanel/StartPanel.css +1 -1
- package/esm/components/layouts/totem.css +49 -8
- package/esm/components/ui/Button.css +1 -1
- package/esm/components/ui/Checkbox.css +0 -2
- package/esm/components/ui/Drawer.css +1 -1
- package/esm/components/ui/Modal.css +1 -1
- package/esm/components/ui/Select.css +17 -16
- package/esm/components/ui/Tooltip.css +11 -7
- package/esm/helpers/translations.js +1 -2
- package/esm/helpers/translations.js.map +1 -1
- package/esm/styles.css +2 -2
- package/package.json +1 -1
- package/src/components/Avatar/Avatar.css +0 -1
- package/src/components/Blob/Blob.css +6 -1
- package/src/components/ChangeMode/ChangeMode.css +1 -1
- package/src/components/Chat/Chat.css +3 -2
- package/src/components/ChatBubble/ChatBubble.css +1 -1
- package/src/components/ChatInputs/ChatInputs.css +2 -2
- package/src/components/ChatTextArea/ChatTextArea.css +7 -3
- package/src/components/DateSelector/DateSelector.css +17 -15
- package/src/components/ExportHistoryButton/ExportHistoryButton.css +1 -1
- package/src/components/FeedbackButtons/FeedbackButtons.css +4 -4
- package/src/components/Header/Header.css +2 -1
- package/src/components/Header/Header.tsx +1 -1
- package/src/components/Header/__snapshots__/Header.test.tsx.snap +1 -1
- package/src/components/ImageUpload/ImageUpload.css +2 -3
- package/src/components/MediaWidget/MediaItemWidget.css +2 -0
- package/src/components/MediaWidget/MediaWidget.css +1 -1
- package/src/components/MemoriWidget/MemoriWidget.css +1 -2
- package/src/components/MicrophoneButton/MicrophoneButton.css +10 -4
- package/src/components/StartPanel/StartPanel.css +1 -1
- package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +1 -1
- package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +1 -1
- package/src/components/layouts/totem.css +49 -8
- package/src/components/ui/Button.css +1 -1
- package/src/components/ui/Checkbox.css +0 -2
- package/src/components/ui/Drawer.css +1 -1
- package/src/components/ui/Modal.css +1 -1
- package/src/components/ui/Select.css +17 -16
- package/src/components/ui/Tooltip.css +11 -7
- package/src/helpers/translations.ts +3 -2
- package/src/styles.css +2 -2
|
@@ -7,14 +7,15 @@
|
|
|
7
7
|
position: relative;
|
|
8
8
|
width: 100%;
|
|
9
9
|
min-height: 38px;
|
|
10
|
-
padding-top: .5rem;
|
|
10
|
+
padding-top: 0.5rem;
|
|
11
11
|
padding-right: 2.5rem;
|
|
12
|
-
padding-bottom: .5rem;
|
|
13
|
-
padding-left: .75rem;
|
|
12
|
+
padding-bottom: 0.5rem;
|
|
13
|
+
padding-left: 0.75rem;
|
|
14
14
|
border: 1px solid #e5e7eb;
|
|
15
|
-
border-radius: .5rem;
|
|
15
|
+
border-radius: 0.5rem;
|
|
16
16
|
background: #fff;
|
|
17
|
-
box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
|
|
17
|
+
box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
|
|
18
|
+
rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
|
|
18
19
|
cursor: pointer;
|
|
19
20
|
text-align: left;
|
|
20
21
|
}
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
|
|
47
48
|
@media (min-width: 640px) {
|
|
48
49
|
.memori-select--button {
|
|
49
|
-
font-size: .875rem;
|
|
50
|
+
font-size: 0.875rem;
|
|
50
51
|
line-height: 1.25rem;
|
|
51
52
|
}
|
|
52
53
|
}
|
|
@@ -74,7 +75,7 @@
|
|
|
74
75
|
bottom: 0;
|
|
75
76
|
display: flex;
|
|
76
77
|
align-items: center;
|
|
77
|
-
padding-right: .5rem;
|
|
78
|
+
padding-right: 0.5rem;
|
|
78
79
|
pointer-events: none;
|
|
79
80
|
}
|
|
80
81
|
|
|
@@ -91,32 +92,33 @@ ul.memori-select--options {
|
|
|
91
92
|
width: 100%;
|
|
92
93
|
max-width: min(18rem, 30%);
|
|
93
94
|
max-height: 15rem;
|
|
94
|
-
padding-top: .25rem;
|
|
95
|
+
padding-top: 0.25rem;
|
|
95
96
|
padding-right: 0;
|
|
96
|
-
padding-bottom: .25rem;
|
|
97
|
+
padding-bottom: 0.25rem;
|
|
97
98
|
padding-left: 0;
|
|
98
|
-
border-radius: .375rem;
|
|
99
|
-
margin-top: .25rem;
|
|
99
|
+
border-radius: 0.375rem;
|
|
100
|
+
margin-top: 0.25rem;
|
|
100
101
|
margin-right: 0;
|
|
101
102
|
margin-bottom: 0;
|
|
102
103
|
margin-left: 0;
|
|
103
104
|
background: #fff;
|
|
104
|
-
box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px,
|
|
105
|
+
box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px,
|
|
106
|
+
rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
|
|
105
107
|
list-style: none;
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
@media (min-width: 640px) {
|
|
109
111
|
.memori-select--options {
|
|
110
|
-
font-size: .875rem;
|
|
112
|
+
font-size: 0.875rem;
|
|
111
113
|
line-height: 1.25rem;
|
|
112
114
|
}
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
li.memori-select--option {
|
|
116
118
|
position: relative;
|
|
117
|
-
padding-top: .5rem;
|
|
119
|
+
padding-top: 0.5rem;
|
|
118
120
|
padding-right: 1rem;
|
|
119
|
-
padding-bottom: .5rem;
|
|
121
|
+
padding-bottom: 0.5rem;
|
|
120
122
|
padding-left: 1rem;
|
|
121
123
|
color: rgb(17 24 39/1);
|
|
122
124
|
cursor: pointer;
|
|
@@ -132,4 +134,3 @@ li.memori-select--option:focus {
|
|
|
132
134
|
outline: 2px solid #63b3ed;
|
|
133
135
|
outline-offset: 2px;
|
|
134
136
|
}
|
|
135
|
-
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
border: 10px solid rgba(0, 0, 0, 0.8);
|
|
42
42
|
border-color: transparent rgba(0, 0, 0, 0.8) transparent transparent;
|
|
43
43
|
margin-left: -5px;
|
|
44
|
-
content:
|
|
44
|
+
content: '';
|
|
45
45
|
opacity: 0;
|
|
46
46
|
transform: translateY(-50%);
|
|
47
|
-
transition: .3s;
|
|
47
|
+
transition: 0.3s;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.memori-tooltip.memori-tooltip--align-left .memori-tooltip--content::before {
|
|
@@ -81,8 +81,10 @@
|
|
|
81
81
|
opacity: 1;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.memori-tooltip.memori-tooltip--align-topRight:not(.memori-tooltip--disabled).memori-tooltip--visible
|
|
85
|
-
.memori-tooltip
|
|
84
|
+
.memori-tooltip.memori-tooltip--align-topRight:not(.memori-tooltip--disabled).memori-tooltip--visible
|
|
85
|
+
.memori-tooltip--content,
|
|
86
|
+
.memori-tooltip.memori-tooltip--align-topRight:not(.memori-tooltip--disabled):not(.memori-tooltip--visible):hover
|
|
87
|
+
.memori-tooltip--content {
|
|
86
88
|
transform: translateY(-150%) translateX(-33%);
|
|
87
89
|
}
|
|
88
90
|
|
|
@@ -95,8 +97,10 @@
|
|
|
95
97
|
margin-left: 5px;
|
|
96
98
|
}
|
|
97
99
|
|
|
98
|
-
.memori-tooltip.memori-tooltip--align-topLeft:not(.memori-tooltip--disabled).memori-tooltip--visible
|
|
99
|
-
.memori-tooltip
|
|
100
|
+
.memori-tooltip.memori-tooltip--align-topLeft:not(.memori-tooltip--disabled).memori-tooltip--visible
|
|
101
|
+
.memori-tooltip--content,
|
|
102
|
+
.memori-tooltip.memori-tooltip--align-topLeft:not(.memori-tooltip--disabled):not(.memori-tooltip--visible):hover
|
|
103
|
+
.memori-tooltip--content {
|
|
100
104
|
transform: translateY(-150%) translateX(33%);
|
|
101
105
|
}
|
|
102
106
|
|
|
@@ -108,4 +112,4 @@
|
|
|
108
112
|
|
|
109
113
|
.memori-tooltip.memori-tooltip--disabled {
|
|
110
114
|
cursor: not-allowed;
|
|
111
|
-
}
|
|
115
|
+
}
|
|
@@ -23,8 +23,9 @@ export const getTranslation = async (
|
|
|
23
23
|
const isReservedKeyword = dialogKeywords.indexOf(text.toLowerCase()) > -1;
|
|
24
24
|
const fromLanguage = isReservedKeyword ? 'IT' : from?.toUpperCase();
|
|
25
25
|
const deeplResult = await fetch(
|
|
26
|
-
`${
|
|
27
|
-
'https://app.twincreator.com'
|
|
26
|
+
`${
|
|
27
|
+
baseUrl || 'https://app.twincreator.com'
|
|
28
|
+
}/api/translate?text=${encodeURIComponent(
|
|
28
29
|
text
|
|
29
30
|
)}&target_lang=${to.toUpperCase()}${
|
|
30
31
|
fromLanguage ? `&source_lang=${fromLanguage}` : ''
|
package/src/styles.css
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
memori-client,
|
|
58
58
|
memori-client #root,
|
|
59
|
-
memori-client
|
|
59
|
+
memori-client ~ #headlessui-portal-root,
|
|
60
60
|
body.sb-show-main #root,
|
|
61
61
|
body.sb-show-main #headlessui-portal-root,
|
|
62
62
|
#storybook-root,
|
|
@@ -84,4 +84,4 @@ body.sb-show-main #headlessui-portal-root,
|
|
|
84
84
|
--memori-modal--width: 100%;
|
|
85
85
|
--memori-modal--width--md: 80%;
|
|
86
86
|
--memori-error-color: #ff4d4f;
|
|
87
|
-
}
|
|
87
|
+
}
|