@memori.ai/memori-react 5.1.0 → 6.0.0-rc.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 (93) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -0
  3. package/dist/components/AttachmentMediaModal/AttachmentMediaModal.d.ts +14 -0
  4. package/dist/components/AttachmentMediaModal/AttachmentMediaModal.js +66 -0
  5. package/dist/components/AttachmentMediaModal/AttachmentMediaModal.js.map +1 -0
  6. package/dist/components/Header/Header.css +2 -1
  7. package/dist/components/Header/Header.d.ts +2 -0
  8. package/dist/components/Header/Header.js +3 -2
  9. package/dist/components/Header/Header.js.map +1 -1
  10. package/dist/components/ImageUpload/ImageUpload.css +168 -0
  11. package/dist/components/ImageUpload/ImageUpload.d.ts +28 -0
  12. package/dist/components/ImageUpload/ImageUpload.js +163 -0
  13. package/dist/components/ImageUpload/ImageUpload.js.map +1 -0
  14. package/dist/components/LoginDrawer/LoginDrawer.css +84 -0
  15. package/dist/components/LoginDrawer/LoginDrawer.d.ts +15 -0
  16. package/dist/components/LoginDrawer/LoginDrawer.js +129 -0
  17. package/dist/components/LoginDrawer/LoginDrawer.js.map +1 -0
  18. package/dist/components/MemoriWidget/MemoriWidget.d.ts +2 -1
  19. package/dist/components/MemoriWidget/MemoriWidget.js +33 -5
  20. package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
  21. package/dist/components/StartPanel/StartPanel.d.ts +2 -0
  22. package/dist/components/StartPanel/StartPanel.js +2 -2
  23. package/dist/components/StartPanel/StartPanel.js.map +1 -1
  24. package/dist/components/layouts/Default.d.ts +17 -0
  25. package/dist/components/layouts/Default.js +8 -0
  26. package/dist/components/layouts/Default.js.map +1 -0
  27. package/dist/components/ui/Message.d.ts +17 -0
  28. package/dist/components/ui/Message.js +13 -0
  29. package/dist/components/ui/Message.js.map +1 -0
  30. package/dist/index.d.ts +1 -0
  31. package/dist/index.js +3 -2
  32. package/dist/index.js.map +1 -1
  33. package/dist/locales/en.json +25 -0
  34. package/dist/locales/it.json +25 -0
  35. package/dist/styles.css +1 -0
  36. package/esm/components/AttachmentMediaModal/AttachmentMediaModal.d.ts +14 -0
  37. package/esm/components/AttachmentMediaModal/AttachmentMediaModal.js +63 -0
  38. package/esm/components/AttachmentMediaModal/AttachmentMediaModal.js.map +1 -0
  39. package/esm/components/Header/Header.css +2 -1
  40. package/esm/components/Header/Header.d.ts +2 -0
  41. package/esm/components/Header/Header.js +3 -2
  42. package/esm/components/Header/Header.js.map +1 -1
  43. package/esm/components/ImageUpload/ImageUpload.css +168 -0
  44. package/esm/components/ImageUpload/ImageUpload.d.ts +28 -0
  45. package/esm/components/ImageUpload/ImageUpload.js +160 -0
  46. package/esm/components/ImageUpload/ImageUpload.js.map +1 -0
  47. package/esm/components/LoginDrawer/LoginDrawer.css +84 -0
  48. package/esm/components/LoginDrawer/LoginDrawer.d.ts +15 -0
  49. package/esm/components/LoginDrawer/LoginDrawer.js +125 -0
  50. package/esm/components/LoginDrawer/LoginDrawer.js.map +1 -0
  51. package/esm/components/MemoriWidget/MemoriWidget.d.ts +2 -1
  52. package/esm/components/MemoriWidget/MemoriWidget.js +33 -5
  53. package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
  54. package/esm/components/StartPanel/StartPanel.d.ts +2 -0
  55. package/esm/components/StartPanel/StartPanel.js +2 -2
  56. package/esm/components/StartPanel/StartPanel.js.map +1 -1
  57. package/esm/components/layouts/Default.d.ts +17 -0
  58. package/esm/components/layouts/Default.js +5 -0
  59. package/esm/components/layouts/Default.js.map +1 -0
  60. package/esm/components/ui/Message.d.ts +17 -0
  61. package/esm/components/ui/Message.js +10 -0
  62. package/esm/components/ui/Message.js.map +1 -0
  63. package/esm/index.d.ts +1 -0
  64. package/esm/index.js +3 -2
  65. package/esm/index.js.map +1 -1
  66. package/esm/locales/en.json +25 -0
  67. package/esm/locales/it.json +25 -0
  68. package/esm/styles.css +1 -0
  69. package/package.json +1 -1
  70. package/src/components/Header/Header.css +2 -1
  71. package/src/components/Header/Header.stories.tsx +27 -1
  72. package/src/components/Header/Header.test.tsx +14 -1
  73. package/src/components/Header/Header.tsx +17 -0
  74. package/src/components/Header/__snapshots__/Header.test.tsx.snap +260 -0
  75. package/src/components/LoginDrawer/LoginDrawer.css +84 -0
  76. package/src/components/LoginDrawer/LoginDrawer.stories.tsx +58 -0
  77. package/src/components/LoginDrawer/LoginDrawer.test.tsx +86 -0
  78. package/src/components/LoginDrawer/LoginDrawer.tsx +330 -0
  79. package/src/components/LoginDrawer/__snapshots__/LoginDrawer.test.tsx.snap +35 -0
  80. package/src/components/MemoriWidget/MemoriWidget.tsx +48 -4
  81. package/src/components/StartPanel/StartPanel.stories.tsx +3 -1
  82. package/src/components/StartPanel/StartPanel.test.tsx +12 -0
  83. package/src/components/StartPanel/StartPanel.tsx +11 -0
  84. package/src/components/StartPanel/__snapshots__/StartPanel.test.tsx.snap +7 -0
  85. package/src/components/layouts/__snapshots__/Chat.test.tsx.snap +20 -0
  86. package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +20 -0
  87. package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +20 -0
  88. package/src/index.stories.tsx +0 -1
  89. package/src/index.tsx +4 -0
  90. package/src/locales/en.json +25 -0
  91. package/src/locales/it.json +25 -0
  92. package/src/mocks/data.ts +2 -2
  93. package/src/styles.css +1 -0
@@ -86,7 +86,7 @@ const Template: Story<Props> = args => (
86
86
  {args.integrationConfig && (
87
87
  <style dangerouslySetInnerHTML={{ __html: integrationStylesheet }} />
88
88
  )}
89
- <StartPanel {...args} />
89
+ <StartPanel {...args} setShowLoginDrawer={() => {}} />
90
90
  </div>
91
91
  </I18nWrapper>
92
92
  );
@@ -228,6 +228,8 @@ WithDeepThoughtEnabledUnlogged.args = {
228
228
  clickedStart: false,
229
229
  onClickStart: () => {},
230
230
  isUserLoggedIn: false,
231
+ showLogin: true,
232
+ setShowLoginDrawer: () => {},
231
233
  };
232
234
 
233
235
  export const WithDeepThoughtEnabledWithoutPermissionFlag = Template.bind({});
@@ -16,6 +16,7 @@ it('renders StartPanel unchanged', () => {
16
16
  sessionId={sessionID}
17
17
  clickedStart={false}
18
18
  onClickStart={() => {}}
19
+ setShowLoginDrawer={jest.fn()}
19
20
  />
20
21
  );
21
22
  expect(container).toMatchSnapshot();
@@ -39,6 +40,7 @@ it('renders StartPanel with gamification level unchanged', () => {
39
40
  sessionId={sessionID}
40
41
  clickedStart={false}
41
42
  onClickStart={() => {}}
43
+ setShowLoginDrawer={jest.fn()}
42
44
  />
43
45
  );
44
46
  expect(container).toMatchSnapshot();
@@ -60,6 +62,7 @@ it('renders StartPanel with completions enabled unchanged', () => {
60
62
  sessionId={sessionID}
61
63
  clickedStart={false}
62
64
  onClickStart={() => {}}
65
+ setShowLoginDrawer={jest.fn()}
63
66
  />
64
67
  );
65
68
  expect(container).toMatchSnapshot();
@@ -81,6 +84,7 @@ it('renders StartPanel for board of experts unchanged', () => {
81
84
  sessionId={sessionID}
82
85
  clickedStart={false}
83
86
  onClickStart={() => {}}
87
+ setShowLoginDrawer={jest.fn()}
84
88
  />
85
89
  );
86
90
  expect(container).toMatchSnapshot();
@@ -107,6 +111,7 @@ it('renders StartPanel with deep thought enabled unchanged', () => {
107
111
  ...user,
108
112
  pAndCUAccepted: true,
109
113
  }}
114
+ setShowLoginDrawer={jest.fn()}
110
115
  />
111
116
  );
112
117
  expect(container).toMatchSnapshot();
@@ -128,6 +133,8 @@ it('renders StartPanel with deep thought but unlogged unchanged', () => {
128
133
  sessionId={sessionID}
129
134
  clickedStart={false}
130
135
  onClickStart={() => {}}
136
+ showLogin
137
+ setShowLoginDrawer={jest.fn()}
131
138
  />
132
139
  );
133
140
  expect(container).toMatchSnapshot();
@@ -154,6 +161,7 @@ it('renders StartPanel with deep thought enabled but without permission flag unc
154
161
  ...user,
155
162
  pAndCUAccepted: false,
156
163
  }}
164
+ setShowLoginDrawer={jest.fn()}
157
165
  />
158
166
  );
159
167
  expect(container).toMatchSnapshot();
@@ -177,6 +185,7 @@ it('renders StartPanel on instruct unchanged', () => {
177
185
  sessionId={sessionID}
178
186
  clickedStart={false}
179
187
  onClickStart={() => {}}
188
+ setShowLoginDrawer={jest.fn()}
180
189
  />
181
190
  );
182
191
  expect(container).toMatchSnapshot();
@@ -203,6 +212,7 @@ it('renders StartPanel with position required unchanged', () => {
203
212
  sessionId={sessionID}
204
213
  clickedStart={false}
205
214
  onClickStart={() => {}}
215
+ setShowLoginDrawer={jest.fn()}
206
216
  />
207
217
  );
208
218
  expect(container).toMatchSnapshot();
@@ -222,6 +232,7 @@ it('renders StartPanel with integrationConfig unchanged', () => {
222
232
  sessionId={sessionID}
223
233
  clickedStart={false}
224
234
  onClickStart={() => {}}
235
+ setShowLoginDrawer={jest.fn()}
225
236
  />
226
237
  );
227
238
  expect(container).toMatchSnapshot();
@@ -243,6 +254,7 @@ it('renders StartPanel with completion provider down unchanged', () => {
243
254
  sessionId={sessionID}
244
255
  clickedStart={false}
245
256
  onClickStart={() => {}}
257
+ setShowLoginDrawer={jest.fn()}
246
258
  _TEST_forceProviderStatus="major"
247
259
  />
248
260
  );
@@ -39,6 +39,8 @@ export interface Props {
39
39
  _TEST_forceProviderStatus?: string;
40
40
  isUserLoggedIn?: boolean;
41
41
  user?: User;
42
+ showLogin?: boolean;
43
+ setShowLoginDrawer: (show: boolean) => void;
42
44
  }
43
45
 
44
46
  const StartPanel: React.FC<Props> = ({
@@ -60,6 +62,8 @@ const StartPanel: React.FC<Props> = ({
60
62
  _TEST_forceProviderStatus,
61
63
  isUserLoggedIn = false,
62
64
  user,
65
+ showLogin = false,
66
+ setShowLoginDrawer,
63
67
  }) => {
64
68
  const { t, i18n } = useTranslation();
65
69
  const [translatedDescription, setTranslatedDescription] = useState(
@@ -310,6 +314,13 @@ const StartPanel: React.FC<Props> = ({
310
314
  {!isUserLoggedIn && (
311
315
  <p>{t('deepThoughtPreDisclaimerUnlogged')}</p>
312
316
  )}
317
+ {!isUserLoggedIn && showLogin && (
318
+ <p>
319
+ <Button outlined onClick={() => setShowLoginDrawer(true)}>
320
+ Login
321
+ </Button>
322
+ </p>
323
+ )}
313
324
  <p>{t('deepThoughtDisclaimer')}</p>
314
325
  </div>
315
326
  )}
@@ -705,6 +705,13 @@ exports[`renders StartPanel with deep thought but unlogged unchanged 1`] = `
705
705
  <p>
706
706
  deepThoughtPreDisclaimerUnlogged
707
707
  </p>
708
+ <p>
709
+ <button
710
+ class="memori-button memori-button--outlined memori-button--rounded memori-button--padded"
711
+ >
712
+ Login
713
+ </button>
714
+ </p>
708
715
  <p>
709
716
  deepThoughtDisclaimer
710
717
  </p>
@@ -142,6 +142,26 @@ exports[`renders Chat layout unchanged 1`] = `
142
142
  </div>
143
143
  </button>
144
144
  </div>
145
+ <button
146
+ class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-header--button memori-header--button-login"
147
+ title="login.login"
148
+ >
149
+ <span
150
+ class="memori-button--icon"
151
+ >
152
+ <svg
153
+ aria-hidden="true"
154
+ focusable="false"
155
+ role="img"
156
+ viewBox="0 0 1024 1024"
157
+ xmlns="http://www.w3.org/2000/svg"
158
+ >
159
+ <path
160
+ d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"
161
+ />
162
+ </svg>
163
+ </span>
164
+ </button>
145
165
  </div>
146
166
  </div>
147
167
  <div
@@ -120,6 +120,26 @@ exports[`renders FullPage layout unchanged 1`] = `
120
120
  </div>
121
121
  </button>
122
122
  </div>
123
+ <button
124
+ class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-header--button memori-header--button-login"
125
+ title="login.login"
126
+ >
127
+ <span
128
+ class="memori-button--icon"
129
+ >
130
+ <svg
131
+ aria-hidden="true"
132
+ focusable="false"
133
+ role="img"
134
+ viewBox="0 0 1024 1024"
135
+ xmlns="http://www.w3.org/2000/svg"
136
+ >
137
+ <path
138
+ d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"
139
+ />
140
+ </svg>
141
+ </span>
142
+ </button>
123
143
  </div>
124
144
  <div
125
145
  class="memori--grid"
@@ -173,6 +173,26 @@ exports[`renders Totem layout unchanged 1`] = `
173
173
  </div>
174
174
  </button>
175
175
  </div>
176
+ <button
177
+ class="memori-button memori-button--primary memori-button--circle memori-button--padded memori-button--icon-only memori-header--button memori-header--button-login"
178
+ title="login.login"
179
+ >
180
+ <span
181
+ class="memori-button--icon"
182
+ >
183
+ <svg
184
+ aria-hidden="true"
185
+ focusable="false"
186
+ role="img"
187
+ viewBox="0 0 1024 1024"
188
+ xmlns="http://www.w3.org/2000/svg"
189
+ >
190
+ <path
191
+ d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"
192
+ />
193
+ </svg>
194
+ </span>
195
+ </button>
176
196
  </div>
177
197
  </div>
178
198
  <div
@@ -80,7 +80,6 @@ Staging.args = {
80
80
  uiLang: 'EN',
81
81
  lang: 'IT',
82
82
  layout: 'FULLPAGE',
83
- authToken: '00000000-0000-0000-0000-000000000000',
84
83
  };
85
84
 
86
85
  const TemplateWithBatchButton: Story<Props> = args => (
package/src/index.tsx CHANGED
@@ -35,6 +35,7 @@ export interface Props {
35
35
  showClear?: boolean;
36
36
  showOnlyLastMessages?: boolean;
37
37
  showTypingText?: boolean;
38
+ showLogin?: boolean;
38
39
  height?: number | string;
39
40
  baseURL?: string;
40
41
  apiURL?: string;
@@ -92,6 +93,7 @@ const Memori: React.FC<Props> = ({
92
93
  showInputs = true,
93
94
  showDates = false,
94
95
  showContextPerLine = false,
96
+ showLogin = true,
95
97
  height = '100%',
96
98
  baseURL,
97
99
  apiURL = 'https://backend.memori.ai',
@@ -233,6 +235,7 @@ const Memori: React.FC<Props> = ({
233
235
  showInputs={showInputs}
234
236
  showDates={showDates}
235
237
  showContextPerLine={showContextPerLine}
238
+ showLogin={showLogin}
236
239
  integration={memori?.integrations?.find(i =>
237
240
  integrationID
238
241
  ? i.integrationID === integrationID
@@ -306,6 +309,7 @@ Memori.propTypes = {
306
309
  showClear: PropTypes.bool,
307
310
  showOnlyLastMessages: PropTypes.bool,
308
311
  showTypingText: PropTypes.bool,
312
+ showLogin: PropTypes.bool,
309
313
  height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
310
314
  baseURL: PropTypes.string,
311
315
  apiURL: PropTypes.string,
@@ -153,6 +153,31 @@
153
153
  "congratulationsNewLevelDescription": "Your Memori became more evolved with {{points}} points, look at the",
154
154
  "statistics": "statistics"
155
155
  },
156
+ "login": {
157
+ "login": "Login",
158
+ "logout": "Logout",
159
+ "user": "User",
160
+ "loggedDrawerTitle": "Hi, {{name}}!",
161
+ "loginDrawerTitle": "Login",
162
+ "newUserSignUp": "New user?",
163
+ "signUp": "Sign up!",
164
+ "userNameOrEmail": "Username or email",
165
+ "underage": "You must be at least {{age}} years old to sign up.",
166
+ "optional": "Optional",
167
+ "birthDate": "Birth date",
168
+ "birthDateHelper": "We ask for your birth date only to enable or disable functionalities that have age restrictions",
169
+ "missingData": "Missing informations",
170
+ "missingDataHelper": "We know that this is a bit annoying, but we need some more informations to complete your registration.",
171
+ "goToAccountToChangeYourPreferences": "You can change your choice at any time from your Account page.",
172
+ "deepThoughtExplaination": "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.",
173
+ "tnCAndPPAcceptedHelper": "Since your last login, T&C and Privacy Policy have changed. Please accept them, otherwise you won't be able to make changes to your Twins. You can always delete your account in your user profile page.",
174
+ "privacyLabel": "I have read and accepted the",
175
+ "privacyAndCookiePolicy": "Privacy e Cookie Policy",
176
+ "and": "and",
177
+ "termsOfService": "Terms of Service",
178
+ "pAndCUAccepted": "I accept the terms of service about Deep Thought",
179
+ "save": "Save"
180
+ },
156
181
  "success": "Success",
157
182
  "Error": "Error",
158
183
  "internal server error": "Oupsie, sorry... Something went wrong on the server",
@@ -153,6 +153,31 @@
153
153
  "congratulationsNewLevelDescription": "Il tuo Memori è diventato più evoluto con {{points}} punti, guarda le",
154
154
  "statistics": "statistiche"
155
155
  },
156
+ "login": {
157
+ "login": "Accedi",
158
+ "logout": "Esci",
159
+ "user": "Utente",
160
+ "loggedDrawerTitle": "Ciao, {{name}}!",
161
+ "loginDrawerTitle": "Accedi",
162
+ "newUserSignUp": "Sei un nuovo utente?",
163
+ "signUp": "Registrati!",
164
+ "userNameOrEmail": "Nome utente o email",
165
+ "underage": "Devi avere almeno {{age}} anni per registrarti.",
166
+ "optional": "opzionale",
167
+ "birthDate": "Data di nascita",
168
+ "birthDateHelper": "Ti chiediamo la data di nascita esclusivamente per abilitare o disabilitare le funzionalità che hanno restrizioni in base all'età",
169
+ "missingData": "Informazioni mancanti",
170
+ "missingDataHelper": "Sappiamo che questo è un po' fastidioso, ma abbiamo bisogno di alcune informazioni in più per completare la tua registrazione.",
171
+ "goToAccountToChangeYourPreferences": "Puoi cambiare la tua scelta in qualsiasi momento dalla tua pagina Account.",
172
+ "deepThoughtExplaination": "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. Consenti all'autore del twin di contattarti per offerte commerciali riguardanti prodotti su cui hai espresso interesse.",
173
+ "tnCAndPPAcceptedHelper": "Dall'ultimo accesso, i T&C e l'Informativa sulla privacy sono stati modificati. Si prega di accettarle, altrimenti non sarà possibile apportare modifiche ai propri gemelli. Puoi sempre cancellare il tuo account nella pagina del tuo profilo utente.",
174
+ "privacyLabel": "Ho letto e accettato l'",
175
+ "privacyAndCookiePolicy": "informativa sui cookie e sulla privacy",
176
+ "and": "e",
177
+ "termsOfService": "i termini del servizio",
178
+ "pAndCUAccepted": "Accetto le condizioni di utilizzo relative a Pensiero Profondo",
179
+ "save": "Salva"
180
+ },
156
181
  "success": "Operazione andata a buon fine",
157
182
  "Error": "Errore",
158
183
  "internal server error": "Ops, scusa... qualcosa è andato storto nel server",
package/src/mocks/data.ts CHANGED
@@ -22,7 +22,7 @@ export const tenant: Tenant = {
22
22
  creationTimestamp: '2023-05-31T14:32:48.885287Z',
23
23
  description: 'AIsuru',
24
24
  disableRegistration: false,
25
- id: 'aisuru.com',
25
+ id: 'www.aisuru.com',
26
26
  lastChangeTimestamp: '2023-05-31T14:32:48.885287Z',
27
27
  logoURL: 'https://aisuru.com/images/twincreator/logo.png',
28
28
  maxAdmins: 0,
@@ -35,7 +35,7 @@ export const tenant: Tenant = {
35
35
  maxTotalMemori: 0,
36
36
  maxUsers: 0,
37
37
  memoriCount: 0,
38
- name: 'aisuru.com',
38
+ name: 'www.aisuru.com',
39
39
  nonFreeSessionCost: 0.02,
40
40
  paying: true,
41
41
  tenantID: '96caa4b4-31a4-48e5-8163-dec61869a2a7',
package/src/styles.css CHANGED
@@ -39,6 +39,7 @@
39
39
  @import url('./components/DateSelector/DateSelector.css');
40
40
  @import url('./components/AgeVerificationModal/AgeVerificationModal.css');
41
41
  @import url('./components/KnownFacts/KnownFacts.css');
42
+ @import url('./components/LoginDrawer/LoginDrawer.css');
42
43
  @import url('./components/MemoriWidget/MemoriWidget.css');
43
44
 
44
45
  @import url('https://fonts.bunny.net/css?family=exo-2:200,400,700');