im-ui-mobile 0.0.51 → 0.0.53

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.
@@ -27,10 +27,7 @@
27
27
  <script setup lang="ts">
28
28
  import ImHeadImage from '../im-head-image/im-head-image.vue'
29
29
  import { datetime, dom, messageType, emoji } from '../../index'
30
- // import dom from '../../types/utils/dom'
31
- // import messageType from '../../types/utils/messageType'
32
30
  import { MESSAGE_TYPE } from '../../types'
33
- // import emoji from '../../types/utils/emoji';
34
31
 
35
32
  interface Props {
36
33
  chat?: any;
@@ -91,12 +91,8 @@
91
91
  import ImHeadImage from '../im-head-image/im-head-image.vue'
92
92
  import ImChatGroupReaded from '../im-chat-group-readed/im-chat-group-readed.vue'
93
93
  import ImLongPressMenu from '../im-long-press-menu/im-long-press-menu.vue'
94
- import { MESSAGE_TYPE, MESSAGE_STATUS, } from '../../types/utils/enums'
95
- import emoji from '../../types/utils/emoji';
96
- import url from '../../types/utils/url';
97
- import datetime from '../../types/utils/datetime';
98
- import messageType from '../../types/utils/messageType';
99
- import dom from '../../types/utils/dom';
94
+ import { MESSAGE_TYPE, MESSAGE_STATUS, } from '../../types'
95
+ import { datetime, dom, url,messageType, emoji } from '../../index'
100
96
 
101
97
  interface Props {
102
98
  avatar?: string;
@@ -26,8 +26,7 @@
26
26
  </template>
27
27
 
28
28
  <script setup lang="ts">
29
- import recorderApp from '../../types/utils/recorderApp';
30
- import recorderH5 from '../../types/utils/recorderH5';
29
+ import { recorderApp, recorderH5 } from '../../index'
31
30
 
32
31
  const recording = ref(false);
33
32
  const moveToCancel = ref(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "im-ui-mobile",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "description": "A Vue3.0 + typescript instant messaging component library for Uniapp",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/types/index.d.ts CHANGED
@@ -1,19 +1,17 @@
1
1
  /// <reference path="./components.d.ts" />
2
2
 
3
- import eventBus from "./utils/eventBus";
4
- import * as auth from "./utils/auth";
5
- import datetime from "./utils/datetime";
6
- import Emoji from "./utils/emoji";
7
- import { MESSAGE_TYPE, RTC_STATE, TERMINAL_TYPE, MESSAGE_STATUS } from "./utils/enums";
8
- import env from "./utils/env";
9
- import * as dom from "./utils/dom";
10
- import messageType from "./utils/messageType";
11
- import * as recorderApp from "./utils/recorderApp";
12
- import * as recorderH5 from "./utils/recorderH5";
13
- import Requester from "./utils/requester";
14
- import * as url from "./utils/url";
15
- import { useDynamicRefs } from "./utils/useDynamicRefs";
16
- import webSocketManager from "./utils/websocket";
3
+ import eventBus from "./utils/eventBus.d.ts";
4
+ import datetime from "./utils/datetime.d.ts";
5
+ import Emoji from "./utils/emoji.d.ts";
6
+ import { MESSAGE_TYPE, RTC_STATE, TERMINAL_TYPE, MESSAGE_STATUS } from "./utils/enums.d.ts";
7
+ import * as dom from "./utils/dom.d.ts";
8
+ import messageType from "./utils/messageType.d.ts";
9
+ import * as recorderApp from "./utils/recorderApp.d.ts";
10
+ import * as recorderH5 from "./utils/recorderH5.d.ts";
11
+ import Requester from "./utils/requester.d.ts";
12
+ import * as url from "./utils/url.d.ts";
13
+ import { useDynamicRefs } from "./utils/useDynamicRefs.d.ts";
14
+ import webSocketManager from "./utils/websocket.d.ts";
17
15
  import type {
18
16
  // 类型常量
19
17
  RtcMode,
@@ -1,7 +0,0 @@
1
- export declare const setToken: (value: string) => void;
2
- export declare const getToken: () => string;
3
- export declare const setRefreshToken: (value: string) => void;
4
- export declare const getRefreshToken: () => string;
5
- export declare const clearToken: () => void;
6
- export declare const setAuth: (data: any) => void;
7
- export declare const isAuthed: () => boolean;