im-ui-mobile 0.0.75 → 0.0.76

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/index.js CHANGED
@@ -2,7 +2,6 @@ import { UViewPlusPlugin } from './plugins/uview-plus.js'
2
2
  import eventBus from "./utils/eventBus.js";
3
3
  import datetime from "./utils/datetime.js";
4
4
  import Emoji from "./utils/emoji.js";
5
- import { emoji } from "./utils/emoji.js";
6
5
  import dom from "./utils/dom.js";
7
6
  import messageType from "./utils/messageType.js";
8
7
  import RecorderApp from "./utils/recorderApp.js";
@@ -59,6 +58,8 @@ const install = (app, options = {}) => {
59
58
  emoji.setEmojiUrl(config.emojiUrl);
60
59
  }
61
60
 
61
+
62
+
62
63
  // 安装插件
63
64
  app.use(UViewPlusPlugin)
64
65
 
@@ -70,12 +71,12 @@ const install = (app, options = {}) => {
70
71
 
71
72
  const getConfig = () => ({ ...config });
72
73
  const webSocket = new WebSocket();
74
+ const emoji = new Emoji({ emojiUrl: config.emojiUrl })
73
75
 
74
76
  export {
75
77
  getConfig,
76
78
  eventBus,
77
79
  datetime,
78
- Emoji,
79
80
  emoji,
80
81
  dom,
81
82
  messageType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "im-ui-mobile",
3
- "version": "0.0.75",
3
+ "version": "0.0.76",
4
4
  "description": "A Vue3.0 + typescript instant messaging component library for Uniapp",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/utils/emoji.js CHANGED
@@ -166,12 +166,12 @@ console.log('textToPath('+emoText+'):', this.emojiUrl )
166
166
  }
167
167
 
168
168
 
169
- // 创建单例实例
170
- const emoji = new Emoji()
169
+ // // 创建单例实例
170
+ // const emoji = new Emoji()
171
171
 
172
- // 导出单例和类
173
- export { emoji, Emoji }
174
- export default emoji
172
+ // // 导出单例和类
173
+ // export { emoji, Emoji }
174
+ export default Emoji
175
175
 
176
176
  // 为了方便使用,也可以导出一个默认实例(需要先配置emojiUrl)
177
177
  // export const emoji = new Emoji();