@memori.ai/memori-react 5.0.0 → 5.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.
- package/CHANGELOG.md +7 -0
- package/dist/components/PoweredBy/PoweredBy.js +1 -9
- package/dist/components/PoweredBy/PoweredBy.js.map +1 -1
- package/esm/components/PoweredBy/PoweredBy.js +1 -9
- package/esm/components/PoweredBy/PoweredBy.js.map +1 -1
- package/package.json +1 -1
- package/src/components/PoweredBy/PoweredBy.tsx +4 -12
- package/src/components/PoweredBy/__snapshots__/PoweredBy.test.tsx.snap +2 -2
- package/src/components/layouts/__snapshots__/Chat.test.tsx.snap +2 -2
- package/src/components/layouts/__snapshots__/FullPage.test.tsx.snap +2 -2
- package/src/components/layouts/__snapshots__/Totem.test.tsx.snap +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [5.0.1](https://github.com/memori-ai/memori-react/compare/v5.0.0...v5.0.1) (2024-03-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Maintenance
|
|
7
|
+
|
|
8
|
+
* powered by memori.ai ([562d96b](https://github.com/memori-ai/memori-react/commit/562d96b75d0c6bab4515d3b8138292450b02c2a1))
|
|
9
|
+
|
|
3
10
|
## [5.0.0](https://github.com/memori-ai/memori-react/compare/v4.4.1...v5.0.0) (2024-02-16)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -7,15 +7,7 @@ const PoweredBy = ({ tenant, userLang = 'en' }) => {
|
|
|
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
|
|
11
|
-
? 'app.twincreator.com'
|
|
12
|
-
: (tenant === null || tenant === void 0 ? void 0 : tenant.theme) === 'memorytwin'
|
|
13
|
-
? 'app.memorytwin.com'
|
|
14
|
-
: 'aisuru.com'}/${userLang ? userLang.toLowerCase() : ''}`, target: "_blank", rel: "noopener noreferrer", children: tenantId === 'memorytwin'
|
|
15
|
-
? 'MemoryTwin'
|
|
16
|
-
: tenantId === 'twincreator'
|
|
17
|
-
? 'TwinCreator'
|
|
18
|
-
: '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'}`, target: "_blank", rel: "noopener noreferrer", children: "Memori.AI" })] })] }));
|
|
19
11
|
};
|
|
20
12
|
exports.default = PoweredBy;
|
|
21
13
|
//# sourceMappingURL=PoweredBy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PoweredBy.js","sourceRoot":"","sources":["../../../src/components/PoweredBy/PoweredBy.tsx"],"names":[],"mappings":";;;AAOA,MAAM,SAAS,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,EAAS,EAAE,EAAE;IACvD,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,
|
|
1
|
+
{"version":3,"file":"PoweredBy.js","sourceRoot":"","sources":["../../../src/components/PoweredBy/PoweredBy.tsx"],"names":[],"mappings":";;;AAOA,MAAM,SAAS,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,EAAS,EAAE,EAAE;IACvD,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,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAC5C,EAAE,EACF,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,0BAGvB,IACF,IACA,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -5,15 +5,7 @@ const PoweredBy = ({ tenant, userLang = 'en' }) => {
|
|
|
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
|
|
9
|
-
? 'app.twincreator.com'
|
|
10
|
-
: (tenant === null || tenant === void 0 ? void 0 : tenant.theme) === 'memorytwin'
|
|
11
|
-
? 'app.memorytwin.com'
|
|
12
|
-
: 'aisuru.com'}/${userLang ? userLang.toLowerCase() : ''}`, target: "_blank", rel: "noopener noreferrer", children: tenantId === 'memorytwin'
|
|
13
|
-
? 'MemoryTwin'
|
|
14
|
-
: tenantId === 'twincreator'
|
|
15
|
-
? 'TwinCreator'
|
|
16
|
-
: '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'}`, target: "_blank", rel: "noopener noreferrer", children: "Memori.AI" })] })] }));
|
|
17
9
|
};
|
|
18
10
|
export default PoweredBy;
|
|
19
11
|
//# sourceMappingURL=PoweredBy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PoweredBy.js","sourceRoot":"","sources":["../../../src/components/PoweredBy/PoweredBy.tsx"],"names":[],"mappings":";AAOA,MAAM,SAAS,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,EAAS,EAAE,EAAE;IACvD,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,
|
|
1
|
+
{"version":3,"file":"PoweredBy.js","sourceRoot":"","sources":["../../../src/components/PoweredBy/PoweredBy.tsx"],"names":[],"mappings":";AAOA,MAAM,SAAS,GAAG,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAG,IAAI,EAAS,EAAE,EAAE;IACvD,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,EAAE,EACF,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,0BAGvB,IACF,IACA,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -19,21 +19,13 @@ const PoweredBy = ({ tenant, userLang = 'en' }: Props) => {
|
|
|
19
19
|
<p>
|
|
20
20
|
Powered by{' '}
|
|
21
21
|
<a
|
|
22
|
-
href={`https
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
: tenant?.theme === 'memorytwin'
|
|
26
|
-
? 'app.memorytwin.com'
|
|
27
|
-
: 'aisuru.com'
|
|
28
|
-
}/${userLang ? userLang.toLowerCase() : ''}`}
|
|
22
|
+
href={`https://memori.ai/${
|
|
23
|
+
userLang?.toLowerCase() === 'it' ? 'it' : 'en'
|
|
24
|
+
}`}
|
|
29
25
|
target="_blank"
|
|
30
26
|
rel="noopener noreferrer"
|
|
31
27
|
>
|
|
32
|
-
|
|
33
|
-
? 'MemoryTwin'
|
|
34
|
-
: tenantId === 'twincreator'
|
|
35
|
-
? 'TwinCreator'
|
|
36
|
-
: 'AIsuru'}
|
|
28
|
+
Memori.AI
|
|
37
29
|
</a>
|
|
38
30
|
</p>
|
|
39
31
|
</div>
|
|
@@ -376,11 +376,11 @@ exports[`renders FullPage layout unchanged 1`] = `
|
|
|
376
376
|
Powered by
|
|
377
377
|
|
|
378
378
|
<a
|
|
379
|
-
href="https://
|
|
379
|
+
href="https://memori.ai/it"
|
|
380
380
|
rel="noopener noreferrer"
|
|
381
381
|
target="_blank"
|
|
382
382
|
>
|
|
383
|
-
|
|
383
|
+
Memori.AI
|
|
384
384
|
</a>
|
|
385
385
|
</p>
|
|
386
386
|
</div>
|