@memori.ai/memori-react 6.1.4 → 6.1.5

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 CHANGED
@@ -1,5 +1,17 @@
1
1
 
2
2
 
3
+ ## [6.1.5](https://github.com/memori-ai/memori-react/compare/v6.1.4...v6.1.5) (2024-03-29)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * mobile layout fixes + chat layout enhancements ([1bdb6c3](https://github.com/memori-ai/memori-react/commit/1bdb6c3ce337e1fadb9dffb1a473e2575cd6097e))
9
+
10
+
11
+ ### Maintenance
12
+
13
+ * update api client ([56f3f4c](https://github.com/memori-ai/memori-react/commit/56f3f4c65a83dc29d01e93842a3e655af88c51b4))
14
+
3
15
  ## [6.1.4](https://github.com/memori-ai/memori-react/compare/v6.1.3...v6.1.4) (2024-03-28)
4
16
 
5
17
 
@@ -120,6 +120,12 @@
120
120
  filter: blur(var(--memori-blur-background, 0));
121
121
  }
122
122
 
123
+ @media (max-width: 870px) {
124
+ .memori--global-background-image {
125
+ min-height: 100vh;
126
+ }
127
+ }
128
+
123
129
  .memori--powered-by {
124
130
  position: absolute;
125
131
  z-index: 1000;
@@ -7,7 +7,7 @@ const PoweredBy = ({ tenant, userLang = 'en', integrationID, memoriHash, }) => {
7
7
  : (tenant === null || tenant === void 0 ? void 0 : tenant.theme) === 'twincreator'
8
8
  ? 'twincreator'
9
9
  : 'aisuru';
10
- return ((0, jsx_runtime_1.jsxs)("div", { className: "memori--powered-by", children: [(0, jsx_runtime_1.jsx)("img", { src: `https://aisuru.com/images/${tenantId}/logo.png`, alt: "" }), (0, jsx_runtime_1.jsxs)("p", { children: ["Powered by", ' ', (0, jsx_runtime_1.jsx)("a", { href: `https://memori.ai/${(userLang === null || userLang === void 0 ? void 0 : userLang.toLowerCase()) === 'it' ? 'it' : 'en'}${integrationID ? `?integrationID=${integrationID}` : ''}${memoriHash ? `${integrationID ? '&' : '?'}memori=${memoriHash}` : ''}`, target: "_blank", rel: "noopener noreferrer", children: "Memori.AI" })] })] }));
10
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "memori--powered-by", children: [(0, jsx_runtime_1.jsx)("img", { src: `https://aisuru.com/images/${tenantId}/logo.png`, alt: "" }), (0, jsx_runtime_1.jsxs)("p", { children: [(0, jsx_runtime_1.jsx)("span", { className: "sr-only", children: "Powered by" }), (0, jsx_runtime_1.jsx)("a", { href: `https://memori.ai/${(userLang === null || userLang === void 0 ? void 0 : userLang.toLowerCase()) === 'it' ? 'it' : 'en'}${integrationID ? `?integrationID=${integrationID}` : ''}${memoriHash ? `${integrationID ? '&' : '?'}memori=${memoriHash}` : ''}`, target: "_blank", rel: "noopener noreferrer", children: "Memori.AI" })] })] }));
11
11
  };
12
12
  exports.default = PoweredBy;
13
13
  //# sourceMappingURL=PoweredBy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PoweredBy.js","sourceRoot":"","sources":["../../../src/components/PoweredBy/PoweredBy.tsx"],"names":[],"mappings":";;;AASA,MAAM,SAAS,GAAG,CAAC,EACjB,MAAM,EACN,QAAQ,GAAG,IAAI,EACf,aAAa,EACb,UAAU,GACJ,EAAE,EAAE;IACV,MAAM,QAAQ,GACZ,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,MAAK,YAAY;QAC5B,CAAC,CAAC,YAAY;QACd,CAAC,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,MAAK,aAAa;YACjC,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,QAAQ,CAAC;IAEf,OAAO,CACL,iCAAK,SAAS,EAAC,oBAAoB,aACjC,gCAAK,GAAG,EAAE,6BAA6B,QAAQ,WAAW,EAAE,GAAG,EAAC,EAAE,GAAG,EACrE,wDACa,GAAG,EACd,8BACE,IAAI,EAAE,qBACJ,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,MAAK,IAAI,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AAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,UAAU,UAAU,EAAE,CAAC,CAAC,CAAC,EACpE,EAAE,EACF,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,0BAGvB,IACF,IACA,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
@@ -45,6 +45,13 @@
45
45
  bottom: auto;
46
46
  }
47
47
 
48
+ @media (max-width: 870px) {
49
+ .memori-chat-layout .memori--powered-by {
50
+ top: 3.5rem;
51
+ bottom: auto;
52
+ }
53
+ }
54
+
48
55
  .memori-chat-layout--controls {
49
56
  position: relative;
50
57
  z-index: 5;
@@ -120,6 +120,12 @@
120
120
  filter: blur(var(--memori-blur-background, 0));
121
121
  }
122
122
 
123
+ @media (max-width: 870px) {
124
+ .memori--global-background-image {
125
+ min-height: 100vh;
126
+ }
127
+ }
128
+
123
129
  .memori--powered-by {
124
130
  position: absolute;
125
131
  z-index: 1000;
@@ -5,7 +5,7 @@ const PoweredBy = ({ tenant, userLang = 'en', integrationID, memoriHash, }) => {
5
5
  : (tenant === null || tenant === void 0 ? void 0 : tenant.theme) === 'twincreator'
6
6
  ? 'twincreator'
7
7
  : 'aisuru';
8
- return (_jsxs("div", { className: "memori--powered-by", children: [_jsx("img", { src: `https://aisuru.com/images/${tenantId}/logo.png`, alt: "" }), _jsxs("p", { children: ["Powered by", ' ', _jsx("a", { href: `https://memori.ai/${(userLang === null || userLang === void 0 ? void 0 : userLang.toLowerCase()) === 'it' ? 'it' : 'en'}${integrationID ? `?integrationID=${integrationID}` : ''}${memoriHash ? `${integrationID ? '&' : '?'}memori=${memoriHash}` : ''}`, target: "_blank", rel: "noopener noreferrer", children: "Memori.AI" })] })] }));
8
+ return (_jsxs("div", { className: "memori--powered-by", children: [_jsx("img", { src: `https://aisuru.com/images/${tenantId}/logo.png`, alt: "" }), _jsxs("p", { children: [_jsx("span", { className: "sr-only", children: "Powered by" }), _jsx("a", { href: `https://memori.ai/${(userLang === null || userLang === void 0 ? void 0 : userLang.toLowerCase()) === 'it' ? 'it' : 'en'}${integrationID ? `?integrationID=${integrationID}` : ''}${memoriHash ? `${integrationID ? '&' : '?'}memori=${memoriHash}` : ''}`, target: "_blank", rel: "noopener noreferrer", children: "Memori.AI" })] })] }));
9
9
  };
10
10
  export default PoweredBy;
11
11
  //# sourceMappingURL=PoweredBy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PoweredBy.js","sourceRoot":"","sources":["../../../src/components/PoweredBy/PoweredBy.tsx"],"names":[],"mappings":";AASA,MAAM,SAAS,GAAG,CAAC,EACjB,MAAM,EACN,QAAQ,GAAG,IAAI,EACf,aAAa,EACb,UAAU,GACJ,EAAE,EAAE;IACV,MAAM,QAAQ,GACZ,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,MAAK,YAAY;QAC5B,CAAC,CAAC,YAAY;QACd,CAAC,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,MAAK,aAAa;YACjC,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,QAAQ,CAAC;IAEf,OAAO,CACL,eAAK,SAAS,EAAC,oBAAoB,aACjC,cAAK,GAAG,EAAE,6BAA6B,QAAQ,WAAW,EAAE,GAAG,EAAC,EAAE,GAAG,EACrE,sCACa,GAAG,EACd,YACE,IAAI,EAAE,qBACJ,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,MAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAC5C,GAAG,aAAa,CAAC,CAAC,CAAC,kBAAkB,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,GACvD,UAAU,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,UAAU,UAAU,EAAE,CAAC,CAAC,CAAC,EACpE,EAAE,EAC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bottom: auto;
46
46
  }
47
47
 
48
+ @media (max-width: 870px) {
49
+ .memori-chat-layout .memori--powered-by {
50
+ top: 3.5rem;
51
+ bottom: auto;
52
+ }
53
+ }
54
+
48
55
  .memori-chat-layout--controls {
49
56
  position: relative;
50
57
  z-index: 5;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "6.1.4",
2
+ "version": "6.1.5",
3
3
  "name": "@memori.ai/memori-react",
4
4
  "author": "Memori Srl",
5
5
  "main": "dist/index.js",
@@ -290,7 +290,7 @@
290
290
  },
291
291
  "dependencies": {
292
292
  "@headlessui/react": "1.7.4",
293
- "@memori.ai/memori-api-client": "^4.0.2",
293
+ "@memori.ai/memori-api-client": "^4.0.3",
294
294
  "@react-three/drei": "8.20.2",
295
295
  "@react-three/fiber": "7.0.25",
296
296
  "classnames": "2.3.2",
@@ -120,6 +120,12 @@
120
120
  filter: blur(var(--memori-blur-background, 0));
121
121
  }
122
122
 
123
+ @media (max-width: 870px) {
124
+ .memori--global-background-image {
125
+ min-height: 100vh;
126
+ }
127
+ }
128
+
123
129
  .memori--powered-by {
124
130
  position: absolute;
125
131
  z-index: 1000;
@@ -24,7 +24,7 @@ const PoweredBy = ({
24
24
  <div className="memori--powered-by">
25
25
  <img src={`https://aisuru.com/images/${tenantId}/logo.png`} alt="" />
26
26
  <p>
27
- Powered by{' '}
27
+ <span className="sr-only">Powered by</span>
28
28
  <a
29
29
  href={`https://memori.ai/${
30
30
  userLang?.toLowerCase() === 'it' ? 'it' : 'en'
@@ -10,8 +10,11 @@ exports[`renders PoweredBy unchanged 1`] = `
10
10
  src="https://aisuru.com/images/aisuru/logo.png"
11
11
  />
12
12
  <p>
13
- Powered by
14
-
13
+ <span
14
+ class="sr-only"
15
+ >
16
+ Powered by
17
+ </span>
15
18
  <a
16
19
  href="https://memori.ai/en"
17
20
  rel="noopener noreferrer"
@@ -34,8 +37,11 @@ exports[`renders PoweredBy with data unchanged 1`] = `
34
37
  src="https://aisuru.com/images/aisuru/logo.png"
35
38
  />
36
39
  <p>
37
- Powered by
38
-
40
+ <span
41
+ class="sr-only"
42
+ >
43
+ Powered by
44
+ </span>
39
45
  <a
40
46
  href="https://memori.ai/en?integrationID=abc&memori=tenant-owner-memori"
41
47
  rel="noopener noreferrer"
@@ -46,8 +46,11 @@ exports[`renders Chat layout unchanged 1`] = `
46
46
  src="https://aisuru.com/images/aisuru/logo.png"
47
47
  />
48
48
  <p>
49
- Powered by
50
-
49
+ <span
50
+ class="sr-only"
51
+ >
52
+ Powered by
53
+ </span>
51
54
  <a
52
55
  href="https://memori.ai/it?integrationID=cb3c4776-7f0b-4f97-a773-c32a5d7a3bf1&memori=aisuru.com-username-Memori"
53
56
  rel="noopener noreferrer"
@@ -373,8 +373,11 @@ exports[`renders FullPage layout unchanged 1`] = `
373
373
  src="https://aisuru.com/images/aisuru/logo.png"
374
374
  />
375
375
  <p>
376
- Powered by
377
-
376
+ <span
377
+ class="sr-only"
378
+ >
379
+ Powered by
380
+ </span>
378
381
  <a
379
382
  href="https://memori.ai/it?integrationID=cb3c4776-7f0b-4f97-a773-c32a5d7a3bf1&memori=aisuru.com-username-Memori"
380
383
  rel="noopener noreferrer"
@@ -46,8 +46,11 @@ exports[`renders Totem layout unchanged 1`] = `
46
46
  src="https://aisuru.com/images/aisuru/logo.png"
47
47
  />
48
48
  <p>
49
- Powered by
50
-
49
+ <span
50
+ class="sr-only"
51
+ >
52
+ Powered by
53
+ </span>
51
54
  <a
52
55
  href="https://memori.ai/it?integrationID=cb3c4776-7f0b-4f97-a773-c32a5d7a3bf1&memori=aisuru.com-username-Memori"
53
56
  rel="noopener noreferrer"
@@ -45,6 +45,13 @@
45
45
  bottom: auto;
46
46
  }
47
47
 
48
+ @media (max-width: 870px) {
49
+ .memori-chat-layout .memori--powered-by {
50
+ top: 3.5rem;
51
+ bottom: auto;
52
+ }
53
+ }
54
+
48
55
  .memori-chat-layout--controls {
49
56
  position: relative;
50
57
  z-index: 5;