@memori.ai/memori-react 4.4.0 → 5.0.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 (113) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +4 -7
  3. package/dist/components/Chat/Chat.js +1 -1
  4. package/dist/components/Chat/Chat.js.map +1 -1
  5. package/dist/components/ChatBubble/ChatBubble.css +4 -2
  6. package/dist/components/ChatBubble/ChatBubble.js +1 -1
  7. package/dist/components/ChatBubble/ChatBubble.js.map +1 -1
  8. package/dist/components/Header/Header.d.ts +2 -1
  9. package/dist/components/Header/Header.js +2 -2
  10. package/dist/components/Header/Header.js.map +1 -1
  11. package/dist/components/MediaWidget/LinkItemWidget.js +1 -1
  12. package/dist/components/MediaWidget/LinkItemWidget.js.map +1 -1
  13. package/dist/components/MemoriWidget/MemoriWidget.js +43 -45
  14. package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
  15. package/dist/components/PoweredBy/PoweredBy.css +2 -1
  16. package/dist/components/PoweredBy/PoweredBy.js +14 -2
  17. package/dist/components/PoweredBy/PoweredBy.js.map +1 -1
  18. package/dist/components/ShareButton/ShareButton.js +2 -2
  19. package/dist/components/ShareButton/ShareButton.js.map +1 -1
  20. package/dist/components/StartPanel/StartPanel.css +1 -0
  21. package/dist/components/StartPanel/StartPanel.d.ts +2 -1
  22. package/dist/components/StartPanel/StartPanel.js +4 -2
  23. package/dist/components/StartPanel/StartPanel.js.map +1 -1
  24. package/dist/components/Typing/Typing.js +6 -3
  25. package/dist/components/Typing/Typing.js.map +1 -1
  26. package/dist/components/layouts/website-assistant.css +0 -5
  27. package/dist/helpers/constants.js +8 -0
  28. package/dist/helpers/constants.js.map +1 -1
  29. package/dist/helpers/tenant.js +3 -3
  30. package/dist/helpers/tenant.js.map +1 -1
  31. package/dist/helpers/translations.js +1 -1
  32. package/dist/helpers/translations.js.map +1 -1
  33. package/dist/index.d.ts +1 -1
  34. package/dist/index.js +1 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/locales/en.json +4 -2
  37. package/dist/locales/it.json +4 -2
  38. package/esm/components/Chat/Chat.js +1 -1
  39. package/esm/components/Chat/Chat.js.map +1 -1
  40. package/esm/components/ChatBubble/ChatBubble.css +4 -2
  41. package/esm/components/ChatBubble/ChatBubble.js +1 -1
  42. package/esm/components/ChatBubble/ChatBubble.js.map +1 -1
  43. package/esm/components/Header/Header.d.ts +2 -1
  44. package/esm/components/Header/Header.js +2 -2
  45. package/esm/components/Header/Header.js.map +1 -1
  46. package/esm/components/MediaWidget/LinkItemWidget.js +1 -1
  47. package/esm/components/MediaWidget/LinkItemWidget.js.map +1 -1
  48. package/esm/components/MemoriWidget/MemoriWidget.js +43 -45
  49. package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
  50. package/esm/components/PoweredBy/PoweredBy.css +2 -1
  51. package/esm/components/PoweredBy/PoweredBy.js +14 -2
  52. package/esm/components/PoweredBy/PoweredBy.js.map +1 -1
  53. package/esm/components/ShareButton/ShareButton.js +2 -2
  54. package/esm/components/ShareButton/ShareButton.js.map +1 -1
  55. package/esm/components/StartPanel/StartPanel.css +1 -0
  56. package/esm/components/StartPanel/StartPanel.d.ts +2 -1
  57. package/esm/components/StartPanel/StartPanel.js +4 -2
  58. package/esm/components/StartPanel/StartPanel.js.map +1 -1
  59. package/esm/components/Typing/Typing.js +6 -3
  60. package/esm/components/Typing/Typing.js.map +1 -1
  61. package/esm/components/layouts/website-assistant.css +0 -5
  62. package/esm/helpers/constants.js +8 -0
  63. package/esm/helpers/constants.js.map +1 -1
  64. package/esm/helpers/tenant.js +3 -3
  65. package/esm/helpers/tenant.js.map +1 -1
  66. package/esm/helpers/translations.js +1 -1
  67. package/esm/helpers/translations.js.map +1 -1
  68. package/esm/index.d.ts +1 -1
  69. package/esm/index.js +1 -1
  70. package/esm/index.js.map +1 -1
  71. package/esm/locales/en.json +4 -2
  72. package/esm/locales/it.json +4 -2
  73. package/package.json +2 -2
  74. package/src/components/Avatar/__snapshots__/Avatar.test.tsx.snap +2 -2
  75. package/src/components/Chat/Chat.tsx +1 -1
  76. package/src/components/Chat/__snapshots__/Chat.test.tsx.snap +44 -44
  77. package/src/components/ChatBubble/ChatBubble.css +4 -2
  78. package/src/components/ChatBubble/ChatBubble.tsx +1 -1
  79. package/src/components/ChatBubble/__snapshots__/ChatBubble.test.tsx.snap +3 -3
  80. package/src/components/ExpertsDrawer/ExpertsDrawer.stories.tsx +1 -1
  81. package/src/components/ExpertsDrawer/ExpertsDrawer.test.tsx +2 -2
  82. package/src/components/Header/Header.test.tsx +58 -2
  83. package/src/components/Header/Header.tsx +4 -1
  84. package/src/components/Header/__snapshots__/Header.test.tsx.snap +105 -32
  85. package/src/components/MediaWidget/LinkItemWidget.tsx +3 -3
  86. package/src/components/MemoriWidget/MemoriWidget.tsx +45 -42
  87. package/src/components/PoweredBy/PoweredBy.css +2 -1
  88. package/src/components/PoweredBy/PoweredBy.stories.tsx +17 -3
  89. package/src/components/PoweredBy/PoweredBy.tsx +18 -9
  90. package/src/components/PoweredBy/__snapshots__/PoweredBy.test.tsx.snap +3 -3
  91. package/src/components/ShareButton/ShareButton.tsx +2 -2
  92. package/src/components/StartPanel/StartPanel.css +1 -0
  93. package/src/components/StartPanel/StartPanel.stories.tsx +45 -1
  94. package/src/components/StartPanel/StartPanel.test.tsx +52 -1
  95. package/src/components/StartPanel/StartPanel.tsx +15 -11
  96. package/src/components/StartPanel/__snapshots__/StartPanel.test.tsx.snap +339 -26
  97. package/src/components/Typing/Typing.stories.tsx +42 -0
  98. package/src/components/Typing/Typing.tsx +6 -3
  99. package/src/components/layouts/__snapshots__/Chat.test.tsx.snap +6 -6
  100. package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +6 -6
  101. package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +6 -6
  102. package/src/components/layouts/__snapshots__/WebsiteAssistant.test.tsx.snap +2 -2
  103. package/src/components/layouts/layouts.stories.tsx +3 -3
  104. package/src/components/layouts/website-assistant.css +0 -5
  105. package/src/components/ui/definitions.stories.tsx +1 -1
  106. package/src/helpers/constants.ts +8 -0
  107. package/src/helpers/tenant.ts +3 -3
  108. package/src/helpers/translations.ts +1 -3
  109. package/src/index.stories.tsx +10 -10
  110. package/src/index.tsx +2 -2
  111. package/src/locales/en.json +4 -2
  112. package/src/locales/it.json +4 -2
  113. package/src/mocks/data.ts +28 -17
@@ -86,3 +86,45 @@ WithCustomLoadingTextList.args = {
86
86
  ],
87
87
  },
88
88
  };
89
+
90
+ export const WithCustomLoadingTextListAndInitialDelay = Template.bind({});
91
+ WithCustomLoadingTextListAndInitialDelay.args = {
92
+ sentences: {
93
+ en: [
94
+ {
95
+ text: '',
96
+ delayAfter: 10,
97
+ },
98
+ {
99
+ text: 'I am asking the unicorns what they think about it',
100
+ delayAfter: 5,
101
+ },
102
+ {
103
+ text: 'I am trying to understand what my cat is saying about it',
104
+ delayAfter: 10,
105
+ },
106
+ {
107
+ text: 'I am collecting the opinions of the people I know',
108
+ delayAfter: 2,
109
+ },
110
+ ],
111
+ it: [
112
+ {
113
+ text: '',
114
+ delayAfter: 10,
115
+ },
116
+ {
117
+ text: 'Chiedo agli unicorni cosa ne pensano',
118
+ delayAfter: 5,
119
+ },
120
+ {
121
+ text: 'Sto cercando di capire cosa ne pensa il mio gatto',
122
+ delayAfter: 10,
123
+ },
124
+ {
125
+ text: 'Sto raccogliendo le opinioni delle persone che conosco',
126
+ delayAfter: 2,
127
+ },
128
+ ],
129
+ },
130
+ };
@@ -84,13 +84,16 @@ const Typing = ({
84
84
  const [text, setText] = useState(
85
85
  sentences?.[lang]?.length
86
86
  ? `${
87
- sentences[lang][0].text.endsWith('...')
87
+ sentences[lang][0].text.endsWith('...') ||
88
+ !sentences[lang][0].text.length
88
89
  ? sentences[lang][0].text
89
90
  : `${sentences[lang][0].text}...`
90
91
  }${getSeparatorString(sentences[lang][0].delayAfter)}`
91
92
  : sentence
92
93
  ? `${
93
- sentence.endsWith('...') ? sentence : `${sentence}...`
94
+ sentence.endsWith('...') || !sentence.length
95
+ ? sentence
96
+ : `${sentence}...`
94
97
  }${getSeparatorString()}`
95
98
  : ''
96
99
  );
@@ -109,7 +112,7 @@ const Typing = ({
109
112
  const sentence = sentences[lang][nextIndex];
110
113
  setText(
111
114
  `${
112
- sentence.text.endsWith('...')
115
+ sentence.text.endsWith('...') || !sentence.text.length
113
116
  ? sentence.text
114
117
  : `${sentence.text}...`
115
118
  }${getSeparatorString(sentence.delayAfter)}`
@@ -43,17 +43,17 @@ exports[`renders Chat layout unchanged 1`] = `
43
43
  >
44
44
  <img
45
45
  alt=""
46
- src="https://app.twincreator.com/images/twincreator/logo.png"
46
+ src="https://aisuru.com/images/aisuru/logo.png"
47
47
  />
48
48
  <p>
49
49
  Powered by
50
50
 
51
51
  <a
52
- href="https://app.twincreator.com/it"
52
+ href="https://aisuru.com/it"
53
53
  rel="noopener noreferrer"
54
54
  target="_blank"
55
55
  >
56
- TwinCreator
56
+ AIsuru
57
57
  </a>
58
58
  </p>
59
59
  </div>
@@ -212,11 +212,11 @@ exports[`renders Chat layout unchanged 1`] = `
212
212
  class="memori--avatar"
213
213
  >
214
214
  <source
215
- src="https://app.twincreator.com/images/twincreator/square_logo.png"
215
+ src="https://aisuru.com/images/twincreator/square_logo.png"
216
216
  />
217
217
  <img
218
218
  alt="Memori"
219
- src="https://app.twincreator.com/images/twincreator/square_logo.png"
219
+ src="https://aisuru.com/images/twincreator/square_logo.png"
220
220
  />
221
221
  </picture>
222
222
  <h2
@@ -342,7 +342,7 @@ exports[`renders Chat layout unchanged 1`] = `
342
342
  </div>
343
343
  <audio
344
344
  id="memori-audio"
345
- src="https://app.twincreator.com/intro.mp3"
345
+ src="https://aisuru.com/intro.mp3"
346
346
  style="display: none;"
347
347
  />
348
348
  </div>
@@ -254,11 +254,11 @@ exports[`renders FullPage layout unchanged 1`] = `
254
254
  class="memori--avatar"
255
255
  >
256
256
  <source
257
- src="https://app.twincreator.com/images/twincreator/square_logo.png"
257
+ src="https://aisuru.com/images/twincreator/square_logo.png"
258
258
  />
259
259
  <img
260
260
  alt="Memori"
261
- src="https://app.twincreator.com/images/twincreator/square_logo.png"
261
+ src="https://aisuru.com/images/twincreator/square_logo.png"
262
262
  />
263
263
  </picture>
264
264
  <h2
@@ -370,17 +370,17 @@ exports[`renders FullPage layout unchanged 1`] = `
370
370
  >
371
371
  <img
372
372
  alt=""
373
- src="https://app.twincreator.com/images/twincreator/logo.png"
373
+ src="https://aisuru.com/images/aisuru/logo.png"
374
374
  />
375
375
  <p>
376
376
  Powered by
377
377
 
378
378
  <a
379
- href="https://app.twincreator.com/it"
379
+ href="https://aisuru.com/it"
380
380
  rel="noopener noreferrer"
381
381
  target="_blank"
382
382
  >
383
- TwinCreator
383
+ AIsuru
384
384
  </a>
385
385
  </p>
386
386
  </div>
@@ -404,7 +404,7 @@ exports[`renders FullPage layout unchanged 1`] = `
404
404
  </div>
405
405
  <audio
406
406
  id="memori-audio"
407
- src="https://app.twincreator.com/intro.mp3"
407
+ src="https://aisuru.com/intro.mp3"
408
408
  style="display: none;"
409
409
  />
410
410
  </div>
@@ -43,17 +43,17 @@ exports[`renders Totem layout unchanged 1`] = `
43
43
  >
44
44
  <img
45
45
  alt=""
46
- src="https://app.twincreator.com/images/twincreator/logo.png"
46
+ src="https://aisuru.com/images/aisuru/logo.png"
47
47
  />
48
48
  <p>
49
49
  Powered by
50
50
 
51
51
  <a
52
- href="https://app.twincreator.com/it"
52
+ href="https://aisuru.com/it"
53
53
  rel="noopener noreferrer"
54
54
  target="_blank"
55
55
  >
56
- TwinCreator
56
+ AIsuru
57
57
  </a>
58
58
  </p>
59
59
  </div>
@@ -305,11 +305,11 @@ exports[`renders Totem layout unchanged 1`] = `
305
305
  class="memori--avatar"
306
306
  >
307
307
  <source
308
- src="https://app.twincreator.com/images/twincreator/square_logo.png"
308
+ src="https://aisuru.com/images/twincreator/square_logo.png"
309
309
  />
310
310
  <img
311
311
  alt="Memori"
312
- src="https://app.twincreator.com/images/twincreator/square_logo.png"
312
+ src="https://aisuru.com/images/twincreator/square_logo.png"
313
313
  />
314
314
  </picture>
315
315
  <h2
@@ -435,7 +435,7 @@ exports[`renders Totem layout unchanged 1`] = `
435
435
  </div>
436
436
  <audio
437
437
  id="memori-audio"
438
- src="https://app.twincreator.com/intro.mp3"
438
+ src="https://aisuru.com/intro.mp3"
439
439
  style="display: none;"
440
440
  />
441
441
  </div>
@@ -28,7 +28,7 @@ exports[`renders WEBSITE_ASSISTANT layout unchanged 1`] = `
28
28
  <img
29
29
  alt=""
30
30
  role="presentation"
31
- src="https://app.twincreator.com/images/twincreator/square_logo.png"
31
+ src="https://aisuru.com/images/twincreator/square_logo.png"
32
32
  />
33
33
  </figure>
34
34
  <div
@@ -52,7 +52,7 @@ exports[`renders WEBSITE_ASSISTANT layout unchanged 1`] = `
52
52
  </div>
53
53
  <audio
54
54
  id="memori-audio"
55
- src="https://app.twincreator.com/intro.mp3"
55
+ src="https://aisuru.com/intro.mp3"
56
56
  style="display: none;"
57
57
  />
58
58
  </div>
@@ -102,7 +102,7 @@ ChatOnly.args = {
102
102
  newPassword: null,
103
103
  ownerUserID: null,
104
104
  ownerUserName: 'nzambello',
105
- ownerTenantName: 'app.twincreator.com',
105
+ ownerTenantName: 'aisuru.com',
106
106
  memoriConfigurationID: 'fd10bb42-98d9-4c08-8e02-2b08bd4e4975',
107
107
  description:
108
108
  'Sono Nicola Zambello, sviluppatore e attivista per un web etico e sostenibile',
@@ -210,7 +210,7 @@ Totem.args = {
210
210
  newPassword: null,
211
211
  ownerUserID: null,
212
212
  ownerUserName: 'nzambello',
213
- ownerTenantName: 'app.twincreator.com',
213
+ ownerTenantName: 'aisuru.com',
214
214
  memoriConfigurationID: 'fd10bb42-98d9-4c08-8e02-2b08bd4e4975',
215
215
  description:
216
216
  'Sono Nicola Zambello, sviluppatore e attivista per un web etico e sostenibile',
@@ -330,7 +330,7 @@ WebsiteAssistant.args = {
330
330
  newPassword: null,
331
331
  ownerUserID: null,
332
332
  ownerUserName: 'nzambello',
333
- ownerTenantName: 'app.twincreator.com',
333
+ ownerTenantName: 'aisuru.com',
334
334
  memoriConfigurationID: 'fd10bb42-98d9-4c08-8e02-2b08bd4e4975',
335
335
  description:
336
336
  'Sono Nicola Zambello, sviluppatore e attivista per un web etico e sostenibile',
@@ -331,11 +331,6 @@
331
331
  background: none;
332
332
  }
333
333
 
334
- .memori-widget.memori-layout-website_assistant.memori--hide-emissions .memori-website_assistant-layout--controls .memori-chat--bubble-container:not(.memori-chat--bubble-from-user),
335
- .memori-widget.memori-layout-website_assistant.memori--hide-emissions.memori--with-speechkey .memori-website_assistant-layout--controls .memori-chat--bubble-container:not(.memori-chat--bubble-from-user) {
336
- display: none;
337
- }
338
-
339
334
  .memori-website_assistant-layout--avatar .memori-blob {
340
335
  z-index: 2;
341
336
  }
@@ -95,7 +95,7 @@ const Definitions = () => (
95
95
  backgroundRepeat: 'no-repeat',
96
96
  backgroundSize: 'cover',
97
97
  backgroundImage:
98
- 'url(https://app.twincreator.com/images/twincreator/og-image.png)',
98
+ 'url(https://aisuru.com/images/twincreator/og-image.png)',
99
99
  filter: 'blur(var(--memori-blur-background, 0))',
100
100
  width: '200px',
101
101
  height: '100px',
@@ -125,6 +125,10 @@ export const boardOfExpertsLoadingSentences: {
125
125
  }[];
126
126
  } = {
127
127
  it: [
128
+ {
129
+ text: '',
130
+ delayAfter: 10,
131
+ },
128
132
  {
129
133
  text: "Cerco l'esperto più adatto",
130
134
  delayAfter: 5,
@@ -147,6 +151,10 @@ export const boardOfExpertsLoadingSentences: {
147
151
  },
148
152
  ],
149
153
  en: [
154
+ {
155
+ text: '',
156
+ delayAfter: 10,
157
+ },
150
158
  {
151
159
  text: "I'm looking for the most suitable expert",
152
160
  delayAfter: 5,
@@ -1,8 +1,8 @@
1
1
  import { Tenant } from '@memori.ai/memori-api-client/dist/types';
2
2
 
3
3
  const defaultTenant: Tenant = {
4
- id: 'app.twincreator.com',
5
- theme: 'twincreator',
4
+ id: 'aisuru.com',
5
+ theme: 'aisuru',
6
6
  config: {
7
7
  name: 'Memori',
8
8
  showNewUser: false,
@@ -24,7 +24,7 @@ export const getTenant = async (
24
24
  : 'https://'
25
25
  }${baseURL}`
26
26
  ).origin
27
- : 'https://app.twincreator.com';
27
+ : 'https://aisuru.com';
28
28
 
29
29
  try {
30
30
  const response = await fetch(`${apiBaseUrl}/api/tenant/${tenantID}`);
@@ -23,9 +23,7 @@ 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
- baseUrl || 'https://app.twincreator.com'
28
- }/api/translate?text=${encodeURIComponent(
26
+ `${baseUrl || 'https://aisuru.com'}/api/translate?text=${encodeURIComponent(
29
27
  text
30
28
  )}&target_lang=${to.toUpperCase()}${
31
29
  fromLanguage ? `&source_lang=${fromLanguage}` : ''
@@ -28,9 +28,9 @@ export const Anonymous = Template.bind({});
28
28
  Anonymous.args = {
29
29
  ownerUserName: 'nzambello',
30
30
  memoriName: 'Nicola',
31
- tenantID: 'app.twincreator.com',
31
+ tenantID: 'aisuru.com',
32
32
  apiURL: 'https://backend.memori.ai',
33
- baseURL: 'https://app.twincreator.com',
33
+ baseURL: 'https://aisuru.com',
34
34
  uiLang: 'it',
35
35
  showShare: true,
36
36
  showSettings: true,
@@ -74,9 +74,9 @@ Staging.args = {
74
74
  ownerUserName: 'nunziofiore',
75
75
  memoriID: 'b996dbb9-3728-44d6-96f7-9b728224698c',
76
76
  ownerUserID: 'fbee9aaa-0c46-460e-9800-15e31d7c99c0',
77
- tenantID: 'twincreator-staging.aclambda.online',
77
+ tenantID: 'aisuru-staging.aclambda.online',
78
78
  apiURL: 'https://backend-staging.memori.ai',
79
- baseURL: 'https://twincreator-staging.aclambda.online',
79
+ baseURL: 'https://aisuru-staging.aclambda.online',
80
80
  uiLang: 'EN',
81
81
  lang: 'IT',
82
82
  layout: 'FULLPAGE',
@@ -121,9 +121,9 @@ export const WithBatch = TemplateWithBatchButton.bind({});
121
121
  WithBatch.args = {
122
122
  ownerUserName: 'nzambello',
123
123
  memoriName: 'Nicola',
124
- tenantID: 'app.twincreator.com',
124
+ tenantID: 'aisuru.com',
125
125
  apiURL: 'https://backend.memori.ai',
126
- baseURL: 'https://app.twincreator.com',
126
+ baseURL: 'https://aisuru.com',
127
127
  uiLang: 'it',
128
128
  showShare: true,
129
129
  showSettings: true,
@@ -133,9 +133,9 @@ export const WithCustomUserAvatar = Template.bind({});
133
133
  WithCustomUserAvatar.args = {
134
134
  ownerUserName: 'nzambello',
135
135
  memoriName: 'Nicola',
136
- tenantID: 'app.twincreator.com',
136
+ tenantID: 'aisuru.com',
137
137
  apiURL: 'https://backend.memori.ai',
138
- baseURL: 'https://app.twincreator.com',
138
+ baseURL: 'https://aisuru.com',
139
139
  uiLang: 'it',
140
140
  showShare: true,
141
141
  showSettings: true,
@@ -146,9 +146,9 @@ WithCustomUserAvatar.args = {
146
146
  // Instruction.args = {
147
147
  // ownerUserName: 'nzambello',
148
148
  // memoriName: 'Nicola',
149
- // tenantID: 'app.twincreator.com',
149
+ // tenantID: 'aisuru.com',
150
150
  // apiURL: 'https://backend.memori.ai',
151
- // baseURL: 'https://app.twincreator.com',
151
+ // baseURL: 'https://aisuru.com',
152
152
  // uiLang: 'it',
153
153
  // showShare: true,
154
154
  // tag: 'giver',
package/src/index.tsx CHANGED
@@ -42,7 +42,7 @@ export interface Props {
42
42
  pin?: string;
43
43
  context?: { [key: string]: string };
44
44
  initialQuestion?: string;
45
- uiLang?: 'en' | 'it';
45
+ uiLang?: 'en' | 'it' | 'IT' | 'EN';
46
46
  spokenLang?: string;
47
47
  multilingual?: boolean;
48
48
  authToken?: string;
@@ -310,7 +310,7 @@ Memori.propTypes = {
310
310
  pin: PropTypes.string,
311
311
  context: PropTypes.objectOf(PropTypes.any),
312
312
  initialQuestion: PropTypes.string,
313
- uiLang: PropTypes.oneOf(['en', 'it']),
313
+ uiLang: PropTypes.oneOf(['en', 'it', 'EN', 'IT']),
314
314
  spokenLang: PropTypes.string,
315
315
  multilingual: PropTypes.bool,
316
316
  authToken: PropTypes.string,
@@ -50,9 +50,11 @@
50
50
  "ageVerificationText": "To interact with this Twin, you must be at least {{minAge}} years old.",
51
51
  "nsfw": "NSFW: This Twin contains adult contents",
52
52
  "deepThought": "Deep Thought",
53
- "deepThoughtHelper": "Allows to establish a unique relationship between the AI and the person who interrogates it, allowing the AI to remember this relationship and therefore supporting people with questions targeted to their experiences. Once people start their relationships, the creator of the AI will see their community grow with Followers and will be able to observe the known facts collected during the conversations.",
53
+ "deepThoughtHelper": "Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together. Allow the twin's author to contact you for commercial offers regarding products you have shown interest in.",
54
54
  "deepThoughtDisclaimerTitle": "Deep Thought enabled",
55
- "deepThoughtDisclaimer": "By continuing the conversation I authorize the processing of my personal data as specified in the information notice which I declare to have read.",
55
+ "deepThoughtDisclaimer": "Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together.",
56
+ "deepThoughtPreDisclaimerUnlogged": "Log in to enable Deep Thought.",
57
+ "deepThoughtPreDisclaimerNotAllowed": "Deep Thought is disabled since you didn't consent its usage, you can change this any time in your account settings.",
56
58
  "knownFacts": {
57
59
  "title": "Known facts",
58
60
  "description": "Details of the information shared between you and {{memoriName}}",
@@ -50,9 +50,11 @@
50
50
  "ageVerificationText": "Per interagire con questo Twin, devi aver almeno {{minAge}} anni.",
51
51
  "nsfw": "NSFW: Questo Twin contiene contenuti per adulti",
52
52
  "deepThought": "Pensiero profondo",
53
- "deepThoughtHelper": "Permette di stabilire una relazione univoca tra l'IA e la persona che la interroga, permettendo all'IA memoria di questa relazione supportando quindi le persone con domande mirate alle loro esperienze. Una volta che le persone avvieranno le loro relazioni, il creatore delle AI vedrà la propria community crescere di Follower e potrà osservare i fatti noti raccolti durante le conversazioni.",
53
+ "deepThoughtHelper": "Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.",
54
54
  "deepThoughtDisclaimerTitle": "Pensiero profondo abilitato",
55
- "deepThoughtDisclaimer": "Proseguendo nella conversazione autorizzo il trattamento dei miei dati personali così come specificato nell'informativa di cui dichiaro di aver preso visione.",
55
+ "deepThoughtDisclaimer": "Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.",
56
+ "deepThoughtPreDisclaimerUnlogged": "Accedi per abilitare Pensiero Profondo.",
57
+ "deepThoughtPreDisclaimerNotAllowed": "Pensiero Profondo è disabilitato poiché non hai acconsentito al suo utilizzo, puoi cambiare la tua scelta in qualsiasi momento nelle impostazioni del tuo account.",
56
58
  "knownFacts": {
57
59
  "title": "Fatti noti",
58
60
  "description": "Dettagli delle informazioni condivise tra te e {{memoriName}}",
package/src/mocks/data.ts CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  DialogState,
8
8
  KnownFact,
9
9
  ExpertReference,
10
+ User,
10
11
  } from '@memori.ai/memori-api-client/dist/types';
11
12
 
12
13
  export const sessionID = '131165be-9d1a-42fb-a3ce-e8f86d40c88f';
@@ -14,18 +15,16 @@ export const sessionID = '131165be-9d1a-42fb-a3ce-e8f86d40c88f';
14
15
  export const tenant: Tenant = {
15
16
  adminCount: 3,
16
17
  config: {
17
- feedbackURL:
18
- 'https://form.asana.com/?k=XC7S3JWQeIhnjipBuA3gbw&d=1199599736247413',
19
- name: 'TwinCreator',
18
+ name: 'AIsuru',
20
19
  requirePosition: false,
21
20
  showNewUser: true,
22
21
  },
23
22
  creationTimestamp: '2023-05-31T14:32:48.885287Z',
24
- description: 'TwinCreator',
23
+ description: 'AIsuru',
25
24
  disableRegistration: false,
26
- id: 'app.twincreator.com',
25
+ id: 'aisuru.com',
27
26
  lastChangeTimestamp: '2023-05-31T14:32:48.885287Z',
28
- logoURL: 'https://app.twincreator.com/images/twincreator/logo.png',
27
+ logoURL: 'https://aisuru.com/images/twincreator/logo.png',
29
28
  maxAdmins: 0,
30
29
  maxCompletions: 0,
31
30
  maxCompletionsPerUser: 0,
@@ -36,18 +35,30 @@ export const tenant: Tenant = {
36
35
  maxTotalMemori: 0,
37
36
  maxUsers: 0,
38
37
  memoriCount: 0,
39
- name: 'app.twincreator.com',
38
+ name: 'aisuru.com',
40
39
  nonFreeSessionCost: 0.02,
41
40
  paying: true,
42
41
  tenantID: '96caa4b4-31a4-48e5-8163-dec61869a2a7',
43
- theme: 'twincreator',
42
+ theme: 'aisuru',
44
43
  userCount: 0,
45
- usersCanAccessAPI: false,
46
- usersCanCreateMemori: false,
47
- usersCanEditDynamicIntents: false,
48
- usersCanEditIntegrations: false,
49
- usersCanEditMemoriChaining: false,
50
- usersCanRunSnippets: false,
44
+ };
45
+
46
+ export const user: User = {
47
+ tenant: 'localhost:3000',
48
+ userID: '97c42d18-ffe4-47e1-a3c7-e42729f1e6a3',
49
+ userName: 'nzambello',
50
+ eMail: 'nicola@nzambello.dev',
51
+ admin: false,
52
+ maxMemori: 0,
53
+ enableMemoriCreation: true,
54
+ enableBoardOfExperts: true,
55
+ maxFreeSessions: 0,
56
+ tnCAndPPAccepted: true,
57
+ tnCAndPPAcceptanceDate: '2021-03-01T00:00:00.000Z',
58
+ pAndCUAccepted: true,
59
+ pAndCUAcceptanceDate: '2021-03-01T00:00:00.000Z',
60
+ birthDate: '1900-03-01T00:00:00.000Z',
61
+ age: 28,
51
62
  };
52
63
 
53
64
  export const memori: Memori = {
@@ -71,14 +82,14 @@ export const memori: Memori = {
71
82
  contentQualityIndex: 66.6,
72
83
  contentQualityIndexTimestamp: '2021-03-01T12:00:00.000Z',
73
84
  ownerUserName: 'username',
74
- ownerTenantName: 'app.twincreator.com',
85
+ ownerTenantName: 'aisuru.com',
75
86
  ownerUserID: '97c42d18-ffe4-47e1-a3c7-e42729f1e6a3',
76
87
  metaverseEnvironment: 'synthwave',
77
88
  secretToken: 'awanagana',
78
89
  giverPIN: '1234',
79
90
  giverTag: '🧑‍💻',
80
- avatarURL: 'https://app.twincreator.com/images/twincreator/square_logo.png',
81
- coverURL: 'https://app.twincreator.com/images/twincreator/og-image.png',
91
+ avatarURL: 'https://aisuru.com/images/twincreator/square_logo.png',
92
+ coverURL: 'https://aisuru.com/images/twincreator/og-image.png',
82
93
  };
83
94
 
84
95
  export const history: Message[] = [