@memori.ai/memori-react 7.1.3 → 7.3.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 +29 -0
- package/README.md +2 -0
- package/dist/components/Chat/Chat.d.ts +2 -0
- package/dist/components/Chat/Chat.js +3 -3
- package/dist/components/Chat/Chat.js.map +1 -1
- package/dist/components/ChatBubble/ChatBubble.css +15 -10
- package/dist/components/ChatBubble/ChatBubble.d.ts +2 -0
- package/dist/components/ChatBubble/ChatBubble.js +23 -8
- package/dist/components/ChatBubble/ChatBubble.js.map +1 -1
- package/dist/components/MemoriWidget/MemoriWidget.d.ts +3 -1
- package/dist/components/MemoriWidget/MemoriWidget.js +76 -42
- package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/dist/components/icons/Code.d.ts +5 -0
- package/dist/components/icons/Code.js +6 -0
- package/dist/components/icons/Code.js.map +1 -0
- package/dist/components/icons/Copy.js +1 -1
- package/dist/components/icons/Copy.js.map +1 -1
- package/dist/helpers/translations.js +5 -1
- package/dist/helpers/translations.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/locales/en.json +1 -0
- package/dist/locales/it.json +1 -0
- package/esm/components/Chat/Chat.d.ts +2 -0
- package/esm/components/Chat/Chat.js +3 -3
- package/esm/components/Chat/Chat.js.map +1 -1
- package/esm/components/ChatBubble/ChatBubble.css +15 -10
- package/esm/components/ChatBubble/ChatBubble.d.ts +2 -0
- package/esm/components/ChatBubble/ChatBubble.js +23 -8
- package/esm/components/ChatBubble/ChatBubble.js.map +1 -1
- package/esm/components/MemoriWidget/MemoriWidget.d.ts +3 -1
- package/esm/components/MemoriWidget/MemoriWidget.js +76 -42
- package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
- package/esm/components/icons/Code.d.ts +5 -0
- package/esm/components/icons/Code.js +4 -0
- package/esm/components/icons/Code.js.map +1 -0
- package/esm/components/icons/Copy.js +2 -2
- package/esm/components/icons/Copy.js.map +1 -1
- package/esm/helpers/translations.js +5 -1
- package/esm/helpers/translations.js.map +1 -1
- package/esm/index.d.ts +2 -0
- package/esm/index.js +4 -2
- package/esm/index.js.map +1 -1
- package/esm/locales/en.json +1 -0
- package/esm/locales/it.json +1 -0
- package/package.json +2 -2
- package/src/components/Chat/Chat.tsx +6 -0
- package/src/components/Chat/__snapshots__/Chat.test.tsx.snap +1672 -44
- package/src/components/ChatBubble/ChatBubble.css +15 -10
- package/src/components/ChatBubble/ChatBubble.stories.tsx +25 -0
- package/src/components/ChatBubble/ChatBubble.test.tsx +35 -0
- package/src/components/ChatBubble/ChatBubble.tsx +66 -4
- package/src/components/ChatBubble/__snapshots__/ChatBubble.test.tsx.snap +896 -11
- package/src/components/MediaWidget/__snapshots__/MediaItemWidget.test.tsx.snap +30 -4
- package/src/components/MemoriWidget/MemoriWidget.tsx +86 -49
- package/src/components/Snippet/__snapshots__/Snippet.test.tsx.snap +120 -16
- package/src/components/icons/Code.tsx +24 -0
- package/src/components/icons/Copy.tsx +8 -2
- package/src/helpers/translations.ts +10 -2
- package/src/index.stories.tsx +3 -17
- package/src/index.tsx +8 -0
- package/src/locales/en.json +1 -0
- package/src/locales/it.json +1 -0
package/src/index.tsx
CHANGED
|
@@ -28,6 +28,8 @@ export interface Props {
|
|
|
28
28
|
layout?: WidgetProps['layout'];
|
|
29
29
|
customLayout?: WidgetProps['customLayout'];
|
|
30
30
|
showShare?: boolean;
|
|
31
|
+
showCopyButton?: boolean;
|
|
32
|
+
showTranslationOriginal?: boolean;
|
|
31
33
|
showInstruct?: boolean;
|
|
32
34
|
showInputs?: boolean;
|
|
33
35
|
showDates?: boolean;
|
|
@@ -88,6 +90,8 @@ const Memori: React.FC<Props> = ({
|
|
|
88
90
|
layout = 'DEFAULT',
|
|
89
91
|
customLayout,
|
|
90
92
|
showShare = true,
|
|
93
|
+
showCopyButton = true,
|
|
94
|
+
showTranslationOriginal = false,
|
|
91
95
|
showSettings = true,
|
|
92
96
|
showInstruct = false,
|
|
93
97
|
showTypingText = false,
|
|
@@ -239,6 +243,8 @@ const Memori: React.FC<Props> = ({
|
|
|
239
243
|
secret={secretToken}
|
|
240
244
|
sessionID={sessionID}
|
|
241
245
|
showShare={showShare}
|
|
246
|
+
showCopyButton={showCopyButton}
|
|
247
|
+
showTranslationOriginal={showTranslationOriginal}
|
|
242
248
|
showSettings={showSettings}
|
|
243
249
|
showInstruct={showInstruct}
|
|
244
250
|
showTypingText={showTypingText}
|
|
@@ -314,6 +320,8 @@ Memori.propTypes = {
|
|
|
314
320
|
]),
|
|
315
321
|
customLayout: PropTypes.any,
|
|
316
322
|
showShare: PropTypes.bool,
|
|
323
|
+
showCopyButton: PropTypes.bool,
|
|
324
|
+
showTranslationOriginal: PropTypes.bool,
|
|
317
325
|
showInstruct: PropTypes.bool,
|
|
318
326
|
showInputs: PropTypes.bool,
|
|
319
327
|
showDates: PropTypes.bool,
|
package/src/locales/en.json
CHANGED
package/src/locales/it.json
CHANGED