@fle-ui/plus-im-record 0.0.6-beta.0 → 0.0.8-beta.0

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 (67) hide show
  1. package/package.json +2 -2
  2. package/es/@types/index.d.ts +0 -620
  3. package/es/CardTag/index.d.ts +0 -3
  4. package/es/CardTag/index.js +0 -18
  5. package/es/ChatMessageItem/index.d.ts +0 -17
  6. package/es/ChatMessageItem/index.js +0 -130
  7. package/es/ChatMessageItem/index.less +0 -108
  8. package/es/ChatMessageList/index.d.ts +0 -26
  9. package/es/ChatMessageList/index.js +0 -56
  10. package/es/ChatMessageList/index.less +0 -33
  11. package/es/GoodsCard/index.d.ts +0 -14
  12. package/es/GoodsCard/index.js +0 -93
  13. package/es/GoodsCard/index.less +0 -49
  14. package/es/GoodsOrderCard/index.d.ts +0 -17
  15. package/es/GoodsOrderCard/index.js +0 -161
  16. package/es/GoodsOrderCard/index.less +0 -81
  17. package/es/Icon/index.d.ts +0 -8
  18. package/es/Icon/index.js +0 -11
  19. package/es/ParseSession/index.d.ts +0 -21
  20. package/es/ParseSession/index.js +0 -454
  21. package/es/ParseSession/index.less +0 -181
  22. package/es/api/index.d.ts +0 -29
  23. package/es/api/index.js +0 -48
  24. package/es/common/const/index.d.ts +0 -46
  25. package/es/common/const/index.js +0 -82
  26. package/es/common/utils/index.d.ts +0 -33
  27. package/es/common/utils/index.js +0 -169
  28. package/es/index.d.ts +0 -25
  29. package/es/index.js +0 -76
  30. package/es/styles/extends.less +0 -50
  31. package/es/styles/index.less +0 -35
  32. package/es/styles/vars.less +0 -8
  33. package/es/utils/index.d.ts +0 -14
  34. package/es/utils/index.js +0 -50
  35. package/lib/@types/index.d.ts +0 -620
  36. package/lib/CardTag/index.d.ts +0 -3
  37. package/lib/CardTag/index.js +0 -25
  38. package/lib/ChatMessageItem/index.d.ts +0 -17
  39. package/lib/ChatMessageItem/index.js +0 -136
  40. package/lib/ChatMessageItem/index.less +0 -108
  41. package/lib/ChatMessageList/index.d.ts +0 -26
  42. package/lib/ChatMessageList/index.js +0 -63
  43. package/lib/ChatMessageList/index.less +0 -33
  44. package/lib/GoodsCard/index.d.ts +0 -14
  45. package/lib/GoodsCard/index.js +0 -103
  46. package/lib/GoodsCard/index.less +0 -49
  47. package/lib/GoodsOrderCard/index.d.ts +0 -17
  48. package/lib/GoodsOrderCard/index.js +0 -169
  49. package/lib/GoodsOrderCard/index.less +0 -81
  50. package/lib/Icon/index.d.ts +0 -8
  51. package/lib/Icon/index.js +0 -18
  52. package/lib/ParseSession/index.d.ts +0 -21
  53. package/lib/ParseSession/index.js +0 -456
  54. package/lib/ParseSession/index.less +0 -181
  55. package/lib/api/index.d.ts +0 -29
  56. package/lib/api/index.js +0 -55
  57. package/lib/common/const/index.d.ts +0 -46
  58. package/lib/common/const/index.js +0 -88
  59. package/lib/common/utils/index.d.ts +0 -33
  60. package/lib/common/utils/index.js +0 -183
  61. package/lib/index.d.ts +0 -25
  62. package/lib/index.js +0 -85
  63. package/lib/styles/extends.less +0 -50
  64. package/lib/styles/index.less +0 -35
  65. package/lib/styles/vars.less +0 -8
  66. package/lib/utils/index.d.ts +0 -14
  67. package/lib/utils/index.js +0 -56
@@ -1,56 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.parseFileSize = exports.debounce = exports.addUrlSearch = void 0;
7
- var debounce = exports.debounce = function debounce(fn, delay) {
8
- var timeoutId;
9
- return function () {
10
- var _this = this;
11
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12
- args[_key] = arguments[_key];
13
- }
14
- clearTimeout(timeoutId);
15
- timeoutId = setTimeout(function () {
16
- // @ts-ignore
17
- fn.apply(_this, args);
18
- }, delay);
19
- };
20
- };
21
- /**
22
- * 格式化文件大小
23
- * @param size 文件大小(字节)
24
- * @returns 格式化后的文件大小字符串
25
- */
26
- var parseFileSize = exports.parseFileSize = function parseFileSize(size) {
27
- var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
28
- var fileSizeMap = {
29
- 0: 'B',
30
- 1: 'KB',
31
- 2: 'MB',
32
- 3: 'GB',
33
- 4: 'TB'
34
- };
35
- var handler = function handler(size, level) {
36
- if (level >= Object.keys(fileSizeMap).length) {
37
- return 'the file is too big';
38
- }
39
- if (size < 1024) {
40
- return "".concat(size).concat(fileSizeMap[level]);
41
- }
42
- return handler(Math.round(size / 1024), level + 1);
43
- };
44
- return handler(size, level);
45
- };
46
- /**
47
- * 给URL添加查询参数
48
- * @param url 原始URL
49
- * @param search 要添加的查询字符串
50
- * @returns 添加参数后的URL
51
- */
52
- var addUrlSearch = exports.addUrlSearch = function addUrlSearch(url, search) {
53
- var urlObj = new URL(url);
54
- urlObj.search += (urlObj.search.startsWith('?') ? '&' : '?') + search;
55
- return urlObj.href;
56
- };