@memori.ai/memori-react 8.44.0 → 8.45.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 (122) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/components/MemoriWidget/MemoriWidget.d.ts +1 -0
  3. package/dist/components/MemoriWidget/MemoriWidget.js +59 -1
  4. package/dist/components/MemoriWidget/MemoriWidget.js.map +1 -1
  5. package/dist/helpers/nats/getNatsConfig.js.map +1 -1
  6. package/dist/helpers/nats/useNats.d.ts +2 -1
  7. package/dist/helpers/nats/useNats.js +87 -20
  8. package/dist/helpers/nats/useNats.js.map +1 -1
  9. package/dist/helpers/nats/useNatsSession.d.ts +6 -1
  10. package/dist/helpers/nats/useNatsSession.js +49 -8
  11. package/dist/helpers/nats/useNatsSession.js.map +1 -1
  12. package/dist/version.d.ts +1 -1
  13. package/dist/version.js +1 -1
  14. package/esm/components/MemoriWidget/MemoriWidget.d.ts +1 -0
  15. package/esm/components/MemoriWidget/MemoriWidget.js +57 -1
  16. package/esm/components/MemoriWidget/MemoriWidget.js.map +1 -1
  17. package/esm/helpers/nats/getNatsConfig.js.map +1 -1
  18. package/esm/helpers/nats/useNats.d.ts +2 -1
  19. package/esm/helpers/nats/useNats.js +87 -20
  20. package/esm/helpers/nats/useNats.js.map +1 -1
  21. package/esm/helpers/nats/useNatsSession.d.ts +6 -1
  22. package/esm/helpers/nats/useNatsSession.js +48 -8
  23. package/esm/helpers/nats/useNatsSession.js.map +1 -1
  24. package/esm/version.d.ts +1 -1
  25. package/esm/version.js +1 -1
  26. package/package.json +1 -1
  27. package/src/components/MemoriWidget/MemoriWidget.tsx +65 -1
  28. package/src/helpers/nats/getNatsConfig.ts +4 -1
  29. package/src/helpers/nats/useNats.test.tsx +81 -0
  30. package/src/helpers/nats/useNats.ts +109 -29
  31. package/src/helpers/nats/useNatsSession.test.ts +16 -0
  32. package/src/helpers/nats/useNatsSession.ts +79 -13
  33. package/src/version.ts +1 -1
  34. package/dist/components/ChatHistoryDrawer/ChatResumeDrawer.css +0 -372
  35. package/dist/components/DrawerFooter/DrawerFooter.css +0 -62
  36. package/dist/components/IconButton/IconButton.css +0 -144
  37. package/dist/components/MobileSessionPanel/MobileSessionPanel.css +0 -459
  38. package/dist/components/PositionPopover/PositionPopover.css +0 -219
  39. package/dist/components/layouts/WebsiteAssistant/website-assistant.css +0 -806
  40. package/dist/components/layouts/fullpage.css +0 -522
  41. package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.css +0 -372
  42. package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.d.ts +0 -36
  43. package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js +0 -113
  44. package/esm/components/ChatHistoryDrawer/ChatResumeDrawer.js.map +0 -1
  45. package/esm/components/DrawerFooter/DrawerFooter.css +0 -62
  46. package/esm/components/DrawerFooter/DrawerFooter.d.ts +0 -12
  47. package/esm/components/DrawerFooter/DrawerFooter.js +0 -8
  48. package/esm/components/DrawerFooter/DrawerFooter.js.map +0 -1
  49. package/esm/components/IconButton/IconButton.css +0 -144
  50. package/esm/components/IconButton/IconButton.d.ts +0 -9
  51. package/esm/components/IconButton/IconButton.js +0 -33
  52. package/esm/components/IconButton/IconButton.js.map +0 -1
  53. package/esm/components/MobileSessionPanel/MobileSessionPanel.css +0 -459
  54. package/esm/components/MobileSessionPanel/MobileSessionPanel.d.ts +0 -65
  55. package/esm/components/MobileSessionPanel/MobileSessionPanel.js +0 -291
  56. package/esm/components/MobileSessionPanel/MobileSessionPanel.js.map +0 -1
  57. package/esm/components/PositionPopover/PositionPopover.css +0 -219
  58. package/esm/components/PositionPopover/PositionPopover.d.ts +0 -22
  59. package/esm/components/PositionPopover/PositionPopover.js +0 -190
  60. package/esm/components/PositionPopover/PositionPopover.js.map +0 -1
  61. package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.d.ts +0 -4
  62. package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js +0 -61
  63. package/esm/components/layouts/WebsiteAssistant/WebsiteAssistant.js.map +0 -1
  64. package/esm/components/layouts/WebsiteAssistant/website-assistant.css +0 -806
  65. package/esm/components/layouts/fullpage.css +0 -522
  66. package/esm/context/widgetSurfaceContext.d.ts +0 -3
  67. package/esm/context/widgetSurfaceContext.js +0 -7
  68. package/esm/context/widgetSurfaceContext.js.map +0 -1
  69. package/esm/helpers/positionPopover.d.ts +0 -1
  70. package/esm/helpers/positionPopover.js +0 -4
  71. package/esm/helpers/positionPopover.js.map +0 -1
  72. package/esm/helpers/tts/muteSpeaker.d.ts +0 -13
  73. package/esm/helpers/tts/muteSpeaker.js +0 -21
  74. package/esm/helpers/tts/muteSpeaker.js.map +0 -1
  75. package/esm/helpers/usePressTooltip.d.ts +0 -13
  76. package/esm/helpers/usePressTooltip.js +0 -20
  77. package/esm/helpers/usePressTooltip.js.map +0 -1
  78. package/esm/icons/FacebookIcon.d.ts +0 -3
  79. package/esm/icons/FacebookIcon.js +0 -4
  80. package/esm/icons/FacebookIcon.js.map +0 -1
  81. package/esm/icons/LinkedinIcon.d.ts +0 -3
  82. package/esm/icons/LinkedinIcon.js +0 -4
  83. package/esm/icons/LinkedinIcon.js.map +0 -1
  84. package/esm/icons/MemoriIcon.d.ts +0 -3
  85. package/esm/icons/MemoriIcon.js +0 -6
  86. package/esm/icons/MemoriIcon.js.map +0 -1
  87. package/esm/icons/TelegramIcon.d.ts +0 -3
  88. package/esm/icons/TelegramIcon.js +0 -4
  89. package/esm/icons/TelegramIcon.js.map +0 -1
  90. package/esm/icons/TwitterIcon.d.ts +0 -3
  91. package/esm/icons/TwitterIcon.js +0 -4
  92. package/esm/icons/TwitterIcon.js.map +0 -1
  93. package/esm/icons/WhatsappIcon.d.ts +0 -3
  94. package/esm/icons/WhatsappIcon.js +0 -4
  95. package/esm/icons/WhatsappIcon.js.map +0 -1
  96. package/esm/icons/artifacts/DocumentIcon.d.ts +0 -3
  97. package/esm/icons/artifacts/DocumentIcon.js +0 -4
  98. package/esm/icons/artifacts/DocumentIcon.js.map +0 -1
  99. package/esm/icons/artifacts/HtmlIcon.d.ts +0 -3
  100. package/esm/icons/artifacts/HtmlIcon.js +0 -4
  101. package/esm/icons/artifacts/HtmlIcon.js.map +0 -1
  102. package/esm/icons/artifacts/JavascriptIcon.d.ts +0 -3
  103. package/esm/icons/artifacts/JavascriptIcon.js +0 -4
  104. package/esm/icons/artifacts/JavascriptIcon.js.map +0 -1
  105. package/esm/icons/artifacts/MarkdownIcon.d.ts +0 -3
  106. package/esm/icons/artifacts/MarkdownIcon.js +0 -4
  107. package/esm/icons/artifacts/MarkdownIcon.js.map +0 -1
  108. package/esm/icons/artifacts/PythonIcon.d.ts +0 -3
  109. package/esm/icons/artifacts/PythonIcon.js +0 -4
  110. package/esm/icons/artifacts/PythonIcon.js.map +0 -1
  111. package/esm/icons/artifacts/SvgIcon.d.ts +0 -3
  112. package/esm/icons/artifacts/SvgIcon.js +0 -4
  113. package/esm/icons/artifacts/SvgIcon.js.map +0 -1
  114. package/esm/icons/artifacts/XmlIcon.d.ts +0 -3
  115. package/esm/icons/artifacts/XmlIcon.js +0 -4
  116. package/esm/icons/artifacts/XmlIcon.js.map +0 -1
  117. package/esm/icons/artifacts/cssIcon.d.ts +0 -3
  118. package/esm/icons/artifacts/cssIcon.js +0 -4
  119. package/esm/icons/artifacts/cssIcon.js.map +0 -1
  120. package/esm/testUtils.d.ts +0 -5
  121. package/esm/testUtils.js +0 -15
  122. package/esm/testUtils.js.map +0 -1
@@ -1,219 +0,0 @@
1
- .memori-position-popover__positioner {
2
- z-index: 1300;
3
- }
4
-
5
- .memori-position-popover__popup {
6
- display: flex;
7
- width: min(22rem, calc(100vw - 2rem));
8
- max-width: 22rem;
9
- flex-direction: column;
10
- padding: var(--memori-spacing-md);
11
- border-radius: var(--memori-radius-box);
12
- background: var(--memori-secondary-background);
13
- box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--memori-border-color, rgba(0, 0, 0, 0.08));
14
- font-size: var(--memori-text-size-base);
15
- }
16
-
17
- .memori-position-popover__row {
18
- display: flex;
19
- align-items: center;
20
- justify-content: space-between;
21
- gap: var(--memori-spacing-md);
22
- }
23
-
24
- .memori-position-popover__switch-row {
25
- min-height: 3rem;
26
- padding-top: 0;
27
- padding-bottom: 0;
28
- }
29
-
30
- .memori-position-popover__switch-meta {
31
- display: inline-flex;
32
- min-width: 0;
33
- align-items: center;
34
- padding: 0.5rem;
35
- gap: var(--memori-spacing-sm);
36
- }
37
-
38
- .memori-position-popover__switch-icon {
39
- flex-shrink: 0;
40
- color: var(--memori-text-color-secondary, rgba(255, 255, 255, 0.75));
41
- }
42
-
43
- .memori-position-popover__switch-label {
44
- display: inline-flex;
45
- min-width: 0;
46
- flex-direction: column;
47
- gap: 0.1rem;
48
- }
49
-
50
- .memori-position-popover__switch-label-title {
51
- color: var(--memori-text-color, #fff);
52
- font-size: 0.95rem;
53
- font-weight: 500;
54
- line-height: var(--memori-text-line-normal);
55
- }
56
-
57
- .memori-position-popover__switch-label-subtitle {
58
- color: var(--memori-text-color-secondary, rgba(255, 255, 255, 0.65));
59
- font-size: 0.75rem;
60
- line-height: 1.2;
61
- }
62
-
63
- .memori-position-popover__switch {
64
- position: relative;
65
- width: 2rem;
66
- height: 1.15rem;
67
- flex-shrink: 0;
68
- padding: 0;
69
- border: none;
70
- border-radius: 999px;
71
- background: rgba(255, 255, 255, 0.28);
72
- cursor: pointer;
73
- transition: background 0.15s ease;
74
- }
75
-
76
- .memori-position-popover__switch:focus-visible {
77
- outline: 2px solid var(--memori-primary, #3182ce);
78
- outline-offset: 2px;
79
- }
80
-
81
- .memori-position-popover__switch--on {
82
- background: var(--memori-primary, #8b5cf6);
83
- }
84
-
85
- .memori-position-popover__switch-thumb {
86
- position: absolute;
87
- top: 2px;
88
- left: 2px;
89
- width: calc(1.15rem - 4px);
90
- height: calc(1.15rem - 4px);
91
- border-radius: 50%;
92
- background: #fff;
93
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
94
- transition: transform 0.15s ease;
95
- }
96
-
97
- .memori-position-popover__switch--on .memori-position-popover__switch-thumb {
98
- transform: translateX(0.85rem);
99
- }
100
-
101
- .memori-position-popover__tag-block {
102
- margin-top: var(--memori-spacing-sm);
103
- margin-bottom: var(--memori-spacing-sm);
104
- }
105
-
106
- .memori-position-popover__tag {
107
- display: flex;
108
- max-width: 100%;
109
- align-items: center;
110
- padding: var(--memori-spacing-xs) var(--memori-spacing-sm);
111
- border-radius: 999px;
112
- background: var(--memori-main-background);
113
- gap: var(--memori-spacing-xs);
114
- }
115
-
116
- .memori-autocomplete__portal,
117
- .memori-autocomplete__positioner {
118
- z-index: 1301;
119
- }
120
-
121
- .memori-position-popover__tag--loading {
122
- min-height: 2rem;
123
- }
124
-
125
- .memori-position-popover__tag-text {
126
- overflow: hidden;
127
- min-width: 0;
128
- flex: 1 1 auto;
129
- font-size: 0.875rem;
130
- text-overflow: ellipsis;
131
- white-space: nowrap;
132
- }
133
-
134
- .memori-position-popover__tag-edit {
135
- display: inline-flex;
136
- flex-shrink: 0;
137
- align-items: center;
138
- justify-content: center;
139
- padding: 4px;
140
- border: none;
141
- border-radius: var(--memori-radius-box);
142
- background: transparent;
143
- color: var(--memori-text-color);
144
- cursor: pointer;
145
- }
146
-
147
- .memori-position-popover__tag-edit:hover {
148
- background: rgba(0, 0, 0, 0.06);
149
- }
150
-
151
- .memori-position-popover__tag-edit:focus-visible {
152
- outline: 2px solid var(--memori-primary, #3182ce);
153
- outline-offset: 2px;
154
- }
155
-
156
- .memori-position-popover__tag-skeleton {
157
- height: 0.65rem;
158
- flex: 1 1 auto;
159
- border-radius: 4px;
160
- animation: memori-position-popover-shimmer 1.2s ease-in-out infinite;
161
- background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 25%, rgba(0, 0, 0, 0.12) 37%, rgba(0, 0, 0, 0.06) 63%);
162
- background-size: 400% 100%;
163
- margin-inline: var(--memori-spacing-xs);
164
- }
165
-
166
- .memori-position-popover__spinner {
167
- display: inline-block;
168
- width: 1.125rem;
169
- height: 1.125rem;
170
- flex-shrink: 0;
171
- border: 2px solid var(--memori-border-color, #cbd5e0);
172
- border-radius: 50%;
173
- border-top-color: var(--memori-primary, #3182ce);
174
- animation: memori-position-popover-spin 0.7s linear infinite;
175
- }
176
-
177
- .memori-position-popover__autocomplete-wrap {
178
- width: 100%;
179
- min-width: 0;
180
- }
181
-
182
- .memori-position-popover__error {
183
- margin: 0 0 var(--memori-spacing-sm);
184
- color: var(--memori-danger, #c53030);
185
- font-size: 0.875rem;
186
- line-height: var(--memori-text-line-normal);
187
- }
188
-
189
- .memori-position-popover__map {
190
- margin-top: var(--memori-spacing-sm);
191
- }
192
-
193
- .memori-position-popover__map .memori--venue-widget__map-container {
194
- min-height: 140px;
195
- }
196
-
197
- .memori-position-popover__map .memori--venue-widget__map {
198
- height: 160px;
199
- }
200
-
201
- @keyframes memori-position-popover-spin {
202
- to {
203
- transform: rotate(360deg);
204
- }
205
- }
206
-
207
- @keyframes memori-position-popover-shimmer {
208
- 0% {
209
- background-position: 100% 0;
210
- }
211
-
212
- 100% {
213
- background-position: 0 0;
214
- }
215
- }
216
-
217
- .memori-position-popover__positioner--website-assistant {
218
- z-index: 2147483600;
219
- }