stream-chat-react-native-core 6.5.0-beta.1 → 6.5.0-beta.2
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/lib/commonjs/utils/getTrimmedAttachmentTitle.js +1 -1
- package/lib/commonjs/utils/getTrimmedAttachmentTitle.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/utils/getTrimmedAttachmentTitle.js +1 -1
- package/lib/module/utils/getTrimmedAttachmentTitle.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/utils/getTrimmedAttachmentTitle.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/utils/getTrimmedAttachmentTitle.ts +2 -1
- package/src/version.json +1 -1
|
@@ -10,7 +10,7 @@ var getTrimmedAttachmentTitle = function getTrimmedAttachmentTitle(title) {
|
|
|
10
10
|
var lastIndexOfDot = title.lastIndexOf('.');
|
|
11
11
|
return title.length < 12 ? title : title.slice(0, 12) + '...' + title.slice(lastIndexOfDot);
|
|
12
12
|
} else {
|
|
13
|
-
return title;
|
|
13
|
+
return title.length < 20 ? title : title.slice(0, 20) + '...';
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
exports.getTrimmedAttachmentTitle = getTrimmedAttachmentTitle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_mimeTypes","require","getTrimmedAttachmentTitle","title","mimeType","lookup","lastIndexOfDot","lastIndexOf","length","slice","exports"],"sourceRoot":"../../../src","sources":["utils/getTrimmedAttachmentTitle.ts"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEO,IAAMC,yBAAyB,GAAG,SAA5BA,yBAAyBA,CAAIC,KAAc,EAAK;EAC3D,IAAI,CAACA,KAAK,EAAE,OAAO,EAAE;EAErB,IAAMC,QAAQ,GAAG,IAAAC,iBAAM,EAACF,KAAK,CAAC;EAC9B,IAAIC,QAAQ,EAAE;IACZ,IAAME,cAAc,GAAGH,KAAK,CAACI,WAAW,CAAC,GAAG,CAAC;IAC7C,OAAOJ,KAAK,CAACK,MAAM,GAAG,EAAE,GAAGL,KAAK,GAAGA,KAAK,CAACM,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,GAAGN,KAAK,CAACM,KAAK,CAACH,cAAc,CAAC;EAC7F,CAAC,MAAM;
|
|
1
|
+
{"version":3,"names":["_mimeTypes","require","getTrimmedAttachmentTitle","title","mimeType","lookup","lastIndexOfDot","lastIndexOf","length","slice","exports"],"sourceRoot":"../../../src","sources":["utils/getTrimmedAttachmentTitle.ts"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEO,IAAMC,yBAAyB,GAAG,SAA5BA,yBAAyBA,CAAIC,KAAc,EAAK;EAC3D,IAAI,CAACA,KAAK,EAAE,OAAO,EAAE;EAErB,IAAMC,QAAQ,GAAG,IAAAC,iBAAM,EAACF,KAAK,CAAC;EAC9B,IAAIC,QAAQ,EAAE;IACZ,IAAME,cAAc,GAAGH,KAAK,CAACI,WAAW,CAAC,GAAG,CAAC;IAC7C,OAAOJ,KAAK,CAACK,MAAM,GAAG,EAAE,GAAGL,KAAK,GAAGA,KAAK,CAACM,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,GAAGN,KAAK,CAACM,KAAK,CAACH,cAAc,CAAC;EAC7F,CAAC,MAAM;IAEL,OAAOH,KAAK,CAACK,MAAM,GAAG,EAAE,GAAGL,KAAK,GAAGA,KAAK,CAACM,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK;EAC/D;AACF,CAAC;AAACC,OAAA,CAAAR,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
|
@@ -10,7 +10,7 @@ var getTrimmedAttachmentTitle = function getTrimmedAttachmentTitle(title) {
|
|
|
10
10
|
var lastIndexOfDot = title.lastIndexOf('.');
|
|
11
11
|
return title.length < 12 ? title : title.slice(0, 12) + '...' + title.slice(lastIndexOfDot);
|
|
12
12
|
} else {
|
|
13
|
-
return title;
|
|
13
|
+
return title.length < 20 ? title : title.slice(0, 20) + '...';
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
exports.getTrimmedAttachmentTitle = getTrimmedAttachmentTitle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_mimeTypes","require","getTrimmedAttachmentTitle","title","mimeType","lookup","lastIndexOfDot","lastIndexOf","length","slice","exports"],"sourceRoot":"../../../src","sources":["utils/getTrimmedAttachmentTitle.ts"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEO,IAAMC,yBAAyB,GAAG,SAA5BA,yBAAyBA,CAAIC,KAAc,EAAK;EAC3D,IAAI,CAACA,KAAK,EAAE,OAAO,EAAE;EAErB,IAAMC,QAAQ,GAAG,IAAAC,iBAAM,EAACF,KAAK,CAAC;EAC9B,IAAIC,QAAQ,EAAE;IACZ,IAAME,cAAc,GAAGH,KAAK,CAACI,WAAW,CAAC,GAAG,CAAC;IAC7C,OAAOJ,KAAK,CAACK,MAAM,GAAG,EAAE,GAAGL,KAAK,GAAGA,KAAK,CAACM,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,GAAGN,KAAK,CAACM,KAAK,CAACH,cAAc,CAAC;EAC7F,CAAC,MAAM;
|
|
1
|
+
{"version":3,"names":["_mimeTypes","require","getTrimmedAttachmentTitle","title","mimeType","lookup","lastIndexOfDot","lastIndexOf","length","slice","exports"],"sourceRoot":"../../../src","sources":["utils/getTrimmedAttachmentTitle.ts"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEO,IAAMC,yBAAyB,GAAG,SAA5BA,yBAAyBA,CAAIC,KAAc,EAAK;EAC3D,IAAI,CAACA,KAAK,EAAE,OAAO,EAAE;EAErB,IAAMC,QAAQ,GAAG,IAAAC,iBAAM,EAACF,KAAK,CAAC;EAC9B,IAAIC,QAAQ,EAAE;IACZ,IAAME,cAAc,GAAGH,KAAK,CAACI,WAAW,CAAC,GAAG,CAAC;IAC7C,OAAOJ,KAAK,CAACK,MAAM,GAAG,EAAE,GAAGL,KAAK,GAAGA,KAAK,CAACM,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,GAAGN,KAAK,CAACM,KAAK,CAACH,cAAc,CAAC;EAC7F,CAAC,MAAM;IAEL,OAAOH,KAAK,CAACK,MAAM,GAAG,EAAE,GAAGL,KAAK,GAAGA,KAAK,CAACM,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK;EAC/D;AACF,CAAC;AAACC,OAAA,CAAAR,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
package/lib/module/version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTrimmedAttachmentTitle.d.ts","sourceRoot":"","sources":["../../../src/utils/getTrimmedAttachmentTitle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,WAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"getTrimmedAttachmentTitle.d.ts","sourceRoot":"","sources":["../../../src/utils/getTrimmedAttachmentTitle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,WAAY,MAAM,WAWvD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react-native-core",
|
|
3
3
|
"description": "The official React Native and Expo components for Stream Chat, a service for building chat applications",
|
|
4
|
-
"version": "6.5.0-beta.
|
|
4
|
+
"version": "6.5.0-beta.2",
|
|
5
5
|
"author": {
|
|
6
6
|
"company": "Stream.io Inc",
|
|
7
7
|
"name": "Stream.io Inc"
|
|
@@ -8,6 +8,7 @@ export const getTrimmedAttachmentTitle = (title?: string) => {
|
|
|
8
8
|
const lastIndexOfDot = title.lastIndexOf('.');
|
|
9
9
|
return title.length < 12 ? title : title.slice(0, 12) + '...' + title.slice(lastIndexOfDot);
|
|
10
10
|
} else {
|
|
11
|
-
|
|
11
|
+
// shorten title
|
|
12
|
+
return title.length < 20 ? title : title.slice(0, 20) + '...';
|
|
12
13
|
}
|
|
13
14
|
};
|
package/src/version.json
CHANGED