stream-chat-react-native-core 5.24.1-beta.1 → 5.25.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/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js +1 -1
- package/lib/commonjs/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/commonjs/components/Channel/Channel.js +16 -13
- package/lib/commonjs/components/Channel/Channel.js.map +1 -1
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -0
- package/lib/commonjs/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/commonjs/components/MessageInput/SendButton.js +3 -1
- package/lib/commonjs/components/MessageInput/SendButton.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js +13 -11
- package/lib/commonjs/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -0
- package/lib/commonjs/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/commonjs/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/commonjs/emoji-data/compile.js +63 -11
- package/lib/commonjs/emoji-data/compile.js.map +1 -1
- package/lib/commonjs/emoji-data/index.js +9843 -37
- package/lib/commonjs/emoji-data/index.js.map +1 -1
- package/lib/commonjs/i18n/en.json +1 -1
- package/lib/commonjs/i18n/es.json +34 -34
- package/lib/commonjs/i18n/fr.json +36 -36
- package/lib/commonjs/i18n/he.json +36 -36
- package/lib/commonjs/i18n/hi.json +36 -36
- package/lib/commonjs/i18n/it.json +36 -36
- package/lib/commonjs/i18n/ja.json +36 -36
- package/lib/commonjs/i18n/ko.json +36 -36
- package/lib/commonjs/i18n/nl.json +36 -36
- package/lib/commonjs/i18n/ru.json +35 -35
- package/lib/commonjs/i18n/tr.json +36 -36
- package/lib/commonjs/index.js +4 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/utils/utils.js +84 -31
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/commonjs/version.json +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteInput.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionItem.js.map +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js +1 -1
- package/lib/module/components/AutoCompleteInput/AutoCompleteSuggestionList.js.map +1 -1
- package/lib/module/components/Channel/Channel.js +16 -13
- package/lib/module/components/Channel/Channel.js.map +1 -1
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js +2 -0
- package/lib/module/components/Channel/hooks/useCreateInputMessageInputContext.js.map +1 -1
- package/lib/module/components/MessageInput/SendButton.js +3 -1
- package/lib/module/components/MessageInput/SendButton.js.map +1 -1
- package/lib/module/contexts/messageInputContext/MessageInputContext.js +13 -11
- package/lib/module/contexts/messageInputContext/MessageInputContext.js.map +1 -1
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js +2 -0
- package/lib/module/contexts/messageInputContext/hooks/useCreateMessageInputContext.js.map +1 -1
- package/lib/module/contexts/suggestionsContext/SuggestionsContext.js.map +1 -1
- package/lib/module/emoji-data/compile.js +63 -11
- package/lib/module/emoji-data/compile.js.map +1 -1
- package/lib/module/emoji-data/index.js +9843 -37
- package/lib/module/emoji-data/index.js.map +1 -1
- package/lib/module/i18n/en.json +1 -1
- package/lib/module/i18n/es.json +34 -34
- package/lib/module/i18n/fr.json +36 -36
- package/lib/module/i18n/he.json +36 -36
- package/lib/module/i18n/hi.json +36 -36
- package/lib/module/i18n/it.json +36 -36
- package/lib/module/i18n/ja.json +36 -36
- package/lib/module/i18n/ko.json +36 -36
- package/lib/module/i18n/nl.json +36 -36
- package/lib/module/i18n/ru.json +35 -35
- package/lib/module/i18n/tr.json +36 -36
- package/lib/module/index.js +4 -4
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/utils.js +84 -31
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/module/version.json +1 -1
- package/lib/typescript/components/Channel/hooks/useCreateInputMessageInputContext.d.ts +1 -1
- package/lib/typescript/contexts/messageInputContext/MessageInputContext.d.ts +11 -3
- package/lib/typescript/contexts/messageInputContext/hooks/useCreateMessageInputContext.d.ts +1 -1
- package/lib/typescript/contexts/suggestionsContext/SuggestionsContext.d.ts +1 -1
- package/lib/typescript/emoji-data/index.d.ts +9 -0
- package/lib/typescript/i18n/en.json +1 -1
- package/lib/typescript/i18n/es.json +34 -34
- package/lib/typescript/i18n/fr.json +36 -36
- package/lib/typescript/i18n/he.json +36 -36
- package/lib/typescript/i18n/hi.json +36 -36
- package/lib/typescript/i18n/it.json +36 -36
- package/lib/typescript/i18n/ja.json +36 -36
- package/lib/typescript/i18n/ko.json +36 -36
- package/lib/typescript/i18n/nl.json +36 -36
- package/lib/typescript/i18n/ru.json +35 -35
- package/lib/typescript/i18n/tr.json +36 -36
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/utils/utils.d.ts +9 -4
- package/package.json +3 -2
- package/src/components/AutoCompleteInput/AutoCompleteInput.tsx +1 -1
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionItem.tsx +1 -1
- package/src/components/AutoCompleteInput/AutoCompleteSuggestionList.tsx +1 -1
- package/src/components/Channel/Channel.tsx +3 -0
- package/src/components/Channel/hooks/useCreateInputMessageInputContext.ts +2 -0
- package/src/components/MessageInput/SendButton.tsx +1 -1
- package/src/contexts/messageInputContext/MessageInputContext.tsx +17 -2
- package/src/contexts/messageInputContext/hooks/useCreateMessageInputContext.ts +2 -0
- package/src/contexts/suggestionsContext/SuggestionsContext.tsx +1 -1
- package/src/emoji-data/compile.js +56 -36
- package/src/emoji-data/index.ts +5178 -0
- package/src/i18n/en.json +1 -1
- package/src/i18n/es.json +34 -34
- package/src/i18n/fr.json +36 -36
- package/src/i18n/he.json +36 -36
- package/src/i18n/hi.json +36 -36
- package/src/i18n/it.json +36 -36
- package/src/i18n/ja.json +36 -36
- package/src/i18n/ko.json +36 -36
- package/src/i18n/nl.json +36 -36
- package/src/i18n/ru.json +35 -35
- package/src/i18n/tr.json +36 -36
- package/src/index.ts +1 -1
- package/src/utils/utils.ts +47 -33
- package/src/version.json +1 -1
- package/lib/commonjs/emoji-data/compiled.js +0 -15587
- package/lib/commonjs/emoji-data/compiled.js.map +0 -1
- package/lib/commonjs/emoji-data/emojiNames.js +0 -4913
- package/lib/commonjs/emoji-data/emojiNames.js.map +0 -1
- package/lib/commonjs/emoji-data/emojis.js +0 -13155
- package/lib/commonjs/emoji-data/emojis.js.map +0 -1
- package/lib/module/emoji-data/compiled.js +0 -15587
- package/lib/module/emoji-data/compiled.js.map +0 -1
- package/lib/module/emoji-data/emojiNames.js +0 -4913
- package/lib/module/emoji-data/emojiNames.js.map +0 -1
- package/lib/module/emoji-data/emojis.js +0 -13155
- package/lib/module/emoji-data/emojis.js.map +0 -1
- package/lib/typescript/emoji-data/compiled.d.ts +0 -20
- package/lib/typescript/emoji-data/emojiNames.d.ts +0 -0
- package/lib/typescript/emoji-data/emojis.d.ts +0 -0
- package/src/emoji-data/compiled.ts +0 -8930
- package/src/emoji-data/emojiNames.ts +0 -6960
- package/src/emoji-data/emojis.ts +0 -14893
- package/src/emoji-data/index.js +0 -38
|
@@ -1,14 +1,66 @@
|
|
|
1
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
2
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
3
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
4
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
1
5
|
var fs = require('fs');
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
var getEmojis = function () {
|
|
7
|
+
var _ref = (0, _asyncToGenerator2["default"])(_regenerator["default"].mark(function _callee() {
|
|
8
|
+
var response, emojis, emojiLib;
|
|
9
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
10
|
+
while (1) switch (_context.prev = _context.next) {
|
|
11
|
+
case 0:
|
|
12
|
+
_context.prev = 0;
|
|
13
|
+
_context.next = 3;
|
|
14
|
+
return fetch('https://raw.githubusercontent.com/iamcal/emoji-data/master/emoji.json');
|
|
15
|
+
case 3:
|
|
16
|
+
response = _context.sent;
|
|
17
|
+
_context.next = 6;
|
|
18
|
+
return response.json();
|
|
19
|
+
case 6:
|
|
20
|
+
emojis = _context.sent;
|
|
21
|
+
emojiLib = emojis.map(function (emoji) {
|
|
22
|
+
return (0, _extends2["default"])({
|
|
23
|
+
id: emoji.short_name,
|
|
24
|
+
name: emoji.short_name,
|
|
25
|
+
names: emoji.short_names
|
|
26
|
+
}, emoji.skin_variations ? {
|
|
27
|
+
skins: Object.values(emoji.skin_variations).map(function (skin) {
|
|
28
|
+
return String.fromCodePoint.apply(null, skin.unified.split('-').map(function (unicode) {
|
|
29
|
+
return "0x" + unicode;
|
|
30
|
+
}));
|
|
31
|
+
})
|
|
32
|
+
} : {}, {
|
|
33
|
+
unicode: String.fromCodePoint.apply(null, emoji.unified.split('-').map(function (unicode) {
|
|
34
|
+
return "0x" + unicode;
|
|
35
|
+
}))
|
|
36
|
+
});
|
|
37
|
+
}).sort(function (a, b) {
|
|
38
|
+
return a.name < b.name ? -1 : 1;
|
|
39
|
+
});
|
|
40
|
+
return _context.abrupt("return", {
|
|
41
|
+
emojiLib: emojiLib
|
|
42
|
+
});
|
|
43
|
+
case 11:
|
|
44
|
+
_context.prev = 11;
|
|
45
|
+
_context.t0 = _context["catch"](0);
|
|
46
|
+
console.log(_context.t0);
|
|
47
|
+
case 14:
|
|
48
|
+
case "end":
|
|
49
|
+
return _context.stop();
|
|
50
|
+
}
|
|
51
|
+
}, _callee, null, [[0, 11]]);
|
|
52
|
+
}));
|
|
53
|
+
return function getEmojis() {
|
|
54
|
+
return _ref.apply(this, arguments);
|
|
55
|
+
};
|
|
56
|
+
}();
|
|
57
|
+
getEmojis().then(function (_ref2) {
|
|
58
|
+
var emojiLib = _ref2.emojiLib;
|
|
59
|
+
var stingified = JSON.stringify(emojiLib).replace(/(["'])require(?:(?=(\\?))\2.)*?\1/g, function (value) {
|
|
60
|
+
return value.replace(/"/g, '');
|
|
61
|
+
});
|
|
62
|
+
fs.writeFile('src/emoji-data/index.ts', "export type Emoji = {\n id: string;\n name: string;\n names: string[];\n unicode: string;\n skins?: string[];\n };\n\n export type Emojis = Emoji[];\n\n export const compiledEmojis: Emojis = " + stingified, function (err) {
|
|
63
|
+
if (err) throw err;
|
|
64
|
+
});
|
|
13
65
|
});
|
|
14
66
|
//# sourceMappingURL=compile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["fs","require","
|
|
1
|
+
{"version":3,"names":["fs","require","getEmojis","_ref","_asyncToGenerator2","_regenerator","mark","_callee","response","emojis","emojiLib","wrap","_callee$","_context","prev","next","fetch","sent","json","map","emoji","_extends2","id","short_name","name","names","short_names","skin_variations","skins","Object","values","skin","String","fromCodePoint","apply","unified","split","unicode","sort","a","b","abrupt","t0","console","log","stop","arguments","then","_ref2","stingified","JSON","stringify","replace","value","writeFile","err"],"sources":["compile.js"],"sourcesContent":["/* eslint-disable no-undef */\nconst fs = require('fs');\n\nconst getEmojis = async () => {\n try {\n const response = await fetch(\n 'https://raw.githubusercontent.com/iamcal/emoji-data/master/emoji.json',\n );\n const emojis = await response.json();\n const emojiLib = emojis\n .map((emoji) => ({\n id: emoji.short_name,\n name: emoji.short_name,\n names: emoji.short_names,\n ...(emoji.skin_variations\n ? {\n skins: Object.values(emoji.skin_variations).map((skin) =>\n String.fromCodePoint.apply(\n null,\n skin.unified.split('-').map((unicode) => `0x${unicode}`),\n ),\n ),\n }\n : {}),\n unicode: String.fromCodePoint.apply(\n null,\n emoji.unified.split('-').map((unicode) => `0x${unicode}`),\n ),\n }))\n .sort((a, b) => (a.name < b.name ? -1 : 1));\n\n return { emojiLib };\n } catch (error) {\n console.log(error);\n }\n};\n\ngetEmojis().then(({ emojiLib }) => {\n const stingified = JSON.stringify(emojiLib).replace(\n /([\"'])require(?:(?=(\\\\?))\\2.)*?\\1/g,\n (value) => value.replace(/\"/g, ''),\n );\n\n fs.writeFile(\n 'src/emoji-data/index.ts',\n `export type Emoji = {\n id: string;\n name: string;\n names: string[];\n unicode: string;\n skins?: string[];\n };\n\n export type Emojis = Emoji[];\n\n export const compiledEmojis: Emojis = ${stingified}`,\n (err) => {\n if (err) throw err;\n },\n );\n});\n"],"mappings":";;;;AACA,IAAMA,EAAE,GAAGC,OAAO,CAAC,IAAI,CAAC;AAExB,IAAMC,SAAS;EAAA,IAAAC,IAAA,OAAAC,kBAAA,aAAAC,YAAA,YAAAC,IAAA,CAAG,SAAAC,QAAA;IAAA,IAAAC,QAAA,EAAAC,MAAA,EAAAC,QAAA;IAAA,OAAAL,YAAA,YAAAM,IAAA,UAAAC,SAAAC,QAAA;MAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;QAAA;UAAAF,QAAA,CAAAC,IAAA;UAAAD,QAAA,CAAAE,IAAA;UAAA,OAESC,KAAK,CAC1B,uEACF,CAAC;QAAA;UAFKR,QAAQ,GAAAK,QAAA,CAAAI,IAAA;UAAAJ,QAAA,CAAAE,IAAA;UAAA,OAGOP,QAAQ,CAACU,IAAI,CAAC,CAAC;QAAA;UAA9BT,MAAM,GAAAI,QAAA,CAAAI,IAAA;UACNP,QAAQ,GAAGD,MAAM,CACpBU,GAAG,CAAC,UAACC,KAAK;YAAA,WAAAC,SAAA;cACTC,EAAE,EA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