@memori.ai/memori-react 9.0.0-rc.6 → 9.0.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/components/ChatInputs/ChatInputs.css +1 -0
  3. package/dist/components/Header/Header.css +1 -0
  4. package/dist/components/IconButton/IconButton.css +8 -0
  5. package/dist/components/LoginModal/LoginModal.css +29 -0
  6. package/dist/components/LoginModal/LoginModal.js +14 -5
  7. package/dist/components/LoginModal/LoginModal.js.map +1 -1
  8. package/dist/components/ShareButton/ShareButton.js +0 -5
  9. package/dist/components/ShareButton/ShareButton.js.map +1 -1
  10. package/dist/components/StartPanel/StartPanel.js +2 -2
  11. package/dist/components/StartPanel/StartPanel.js.map +1 -1
  12. package/dist/components/layouts/WebsiteAssistant/website-assistant.css +7 -0
  13. package/dist/components/layouts/fullpage.css +5 -0
  14. package/dist/components/layouts/zoomed-full-body.css +3 -0
  15. package/dist/helpers/constants.d.ts +3 -1
  16. package/dist/helpers/constants.js +44 -31
  17. package/dist/helpers/constants.js.map +1 -1
  18. package/dist/locales/de.json +1 -0
  19. package/dist/locales/en.json +1 -0
  20. package/dist/locales/es.json +1 -0
  21. package/dist/locales/fr.json +1 -0
  22. package/dist/locales/it.json +1 -0
  23. package/dist/styles/host-isolation.css +57 -0
  24. package/dist/styles.css +1 -1
  25. package/dist/version.d.ts +1 -1
  26. package/dist/version.js +1 -1
  27. package/dist/version.js.map +1 -1
  28. package/esm/components/ChatInputs/ChatInputs.css +1 -0
  29. package/esm/components/Header/Header.css +1 -0
  30. package/esm/components/IconButton/IconButton.css +8 -0
  31. package/esm/components/LoginModal/LoginModal.css +29 -0
  32. package/esm/components/LoginModal/LoginModal.js +14 -5
  33. package/esm/components/LoginModal/LoginModal.js.map +1 -1
  34. package/esm/components/ShareButton/ShareButton.js +0 -5
  35. package/esm/components/ShareButton/ShareButton.js.map +1 -1
  36. package/esm/components/StartPanel/StartPanel.js +2 -2
  37. package/esm/components/StartPanel/StartPanel.js.map +1 -1
  38. package/esm/components/layouts/WebsiteAssistant/website-assistant.css +7 -0
  39. package/esm/components/layouts/fullpage.css +5 -0
  40. package/esm/components/layouts/zoomed-full-body.css +3 -0
  41. package/esm/helpers/constants.d.ts +3 -1
  42. package/esm/helpers/constants.js +42 -30
  43. package/esm/helpers/constants.js.map +1 -1
  44. package/esm/locales/de.json +1 -0
  45. package/esm/locales/en.json +1 -0
  46. package/esm/locales/es.json +1 -0
  47. package/esm/locales/fr.json +1 -0
  48. package/esm/locales/it.json +1 -0
  49. package/esm/styles/host-isolation.css +57 -0
  50. package/esm/styles.css +1 -1
  51. package/esm/version.d.ts +1 -1
  52. package/esm/version.js +1 -1
  53. package/esm/version.js.map +1 -1
  54. package/package.json +1 -1
@@ -461,6 +461,7 @@
461
461
  "login": {
462
462
  "login": "Login",
463
463
  "title": "Login to your account",
464
+ "loggingIn": "Logging you in…",
464
465
  "logout": "Logout",
465
466
  "user": "User",
466
467
  "loggedDrawerTitle": "Hi, {{name}}!",
@@ -434,6 +434,7 @@
434
434
  "login": {
435
435
  "login": "Acceso",
436
436
  "title": "Iniciar sesión en tu cuenta",
437
+ "loggingIn": "Iniciando sesión…",
437
438
  "logout": "Cerrar sesión",
438
439
  "user": "Usuario",
439
440
  "loggedDrawerTitle": "Hola, {{name}}!",
@@ -434,6 +434,7 @@
434
434
  "login": {
435
435
  "login": "Se connecter",
436
436
  "title": "Se connecter à votre compte",
437
+ "loggingIn": "Connexion en cours…",
437
438
  "logout": "Déconnexion",
438
439
  "user": "Utilisateur",
439
440
  "loggedDrawerTitle": "Salut, {{name}}!",
@@ -460,6 +460,7 @@
460
460
  "login": {
461
461
  "login": "Accedi",
462
462
  "title": "Accedi al tuo account",
463
+ "loggingIn": "Accesso in corso…",
463
464
  "logout": "Esci",
464
465
  "userNameRequired": "Il nome utente è obbligatorio",
465
466
  "userName": "Nome utente",
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Host-page isolation.
3
+ * @memori.ai/ui ships its rules inside `@layer memori.*`, and any unlayered
4
+ * host rule beats a layered one regardless of specificity: bare resets such as
5
+ * `button { font: inherit }` or `h2 { text-transform: uppercase }` would win
6
+ * over `.memori-button` / `.memori--title`.
7
+ * This unlayered rule (specificity of one class) beats host element selectors
8
+ * and rolls their declarations back to the memori layers. It must stay right
9
+ * after the @memori.ai/ui import so equal-specificity widget rules still win.
10
+ * Replaced elements keep their width/height attributes; MathJax styles its
11
+ * own elements with element selectors, and katex.css is unlayered and loaded
12
+ * before this rule, so both math renderers are left out.
13
+ * Not covered: rem-based tokens still follow the host `html { font-size }`.
14
+ */
15
+ .memori-widget,
16
+ .memori-widget
17
+ :where(
18
+ :not(
19
+ svg,
20
+ svg *,
21
+ img,
22
+ picture,
23
+ video,
24
+ audio,
25
+ canvas,
26
+ iframe,
27
+ object,
28
+ mjx-container,
29
+ mjx-container *,
30
+ .katex-display,
31
+ .katex,
32
+ .katex *
33
+ )
34
+ ) {
35
+ all: revert-layer;
36
+ }
37
+
38
+ /* What the rule above rolls back to when no memori rule sets a value. */
39
+ @layer memori.theme {
40
+ /* Inherited text properties the host body would otherwise pass down */
41
+ .memori-widget {
42
+ font-style: normal;
43
+ font-weight: 400;
44
+ letter-spacing: normal;
45
+ line-height: normal;
46
+ text-align: start;
47
+ text-indent: 0;
48
+ text-transform: none;
49
+ word-spacing: normal;
50
+ }
51
+
52
+ /* Inherit the widget typography instead of the UA system font */
53
+ .memori-widget :where(button, input, select, textarea) {
54
+ font: inherit;
55
+ letter-spacing: inherit;
56
+ }
57
+ }