@ray-js/api 1.6.18 → 1.6.19

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.
@@ -0,0 +1,77 @@
1
+ /**
2
+ * MediaKit
3
+ *
4
+ * @version 3.4.1
5
+ */
6
+ declare namespace ty.media {
7
+ export type ManagerContext = {
8
+ /** managerId */
9
+ managerId: number
10
+ }
11
+
12
+ /**
13
+ *@description 拾音控制*/
14
+ interface GetRGBAudioManagerTask {
15
+ /**
16
+ *@description 开始识音*/
17
+ startRGBRecord(params: {
18
+ success?: (params: null) => void
19
+ fail?: (params: {
20
+ errorMsg: string
21
+ errorCode: string | number
22
+ innerError: {
23
+ errorCode: string | number
24
+ errorMsg: string
25
+ }
26
+ }) => void
27
+ complete?: () => void
28
+ }): void
29
+
30
+ /**
31
+ *@description 结束识音*/
32
+ stopRGBRecord(params: {
33
+ success?: (params: null) => void
34
+ fail?: (params: {
35
+ errorMsg: string
36
+ errorCode: string | number
37
+ innerError: {
38
+ errorCode: string | number
39
+ errorMsg: string
40
+ }
41
+ }) => void
42
+ complete?: () => void
43
+ }): void
44
+
45
+ /**
46
+ *@description 开始监听*/
47
+ onAudioRgbChange(
48
+ listener: (params: {
49
+ /** 语言转换内容 */
50
+ body: string
51
+ }) => void
52
+ ): void
53
+
54
+ /**
55
+ *@description 结束监听*/
56
+ offAudioRgbChange(
57
+ listener: (params: {
58
+ /** 语言转换内容 */
59
+ body: string
60
+ }) => void
61
+ ): void
62
+ }
63
+ /**
64
+ *@description 创建管理器*/
65
+ export function getRGBAudioManager(params?: {
66
+ success?: (params: null) => void
67
+ fail?: (params: {
68
+ errorMsg: string
69
+ errorCode: string | number
70
+ innerError: {
71
+ errorCode: string | number
72
+ errorMsg: string
73
+ }
74
+ }) => void
75
+ complete?: () => void
76
+ }): GetRGBAudioManagerTask
77
+ }
@@ -8,3 +8,4 @@
8
8
  /// <reference path="./P2PKit.d.ts" />
9
9
  /// <reference path="./OutdoorKit.d.ts" />
10
10
  /// <reference path="./HealthKit.d.ts" />
11
+ /// <reference path="./MediaKit.d.ts" />
@@ -0,0 +1,3 @@
1
+ export declare const media: {
2
+ getRGBAudioManager: typeof ty.media.getRGBAudioManager;
3
+ };
@@ -0,0 +1,11 @@
1
+ /// <reference path="../@types/MediaKit.d.ts" />
2
+
3
+ import { createFactory } from './utils';
4
+ const factory = createFactory('MediaKit');
5
+
6
+ // ray 1.6.19 集成
7
+ export const media = {
8
+ getRGBAudioManager: factory('getRGBAudioManager', {
9
+ "namespace": "media"
10
+ })
11
+ };
package/lib/all-kits.d.ts CHANGED
@@ -7,5 +7,6 @@ export * from './MapKit-3.4.13';
7
7
  export * from './HomeKit-3.1.4';
8
8
  export * from './P2PKit-2.0.3';
9
9
  export * from './OutdoorKit-1.0.4';
10
+ export * from './MediaKit-3.4.1';
10
11
  import * as device from './DeviceKit-4.13.1';
11
12
  export { device };
package/lib/all-kits.js CHANGED
@@ -7,5 +7,6 @@ export * from './MapKit-3.4.13';
7
7
  export * from './HomeKit-3.1.4';
8
8
  export * from './P2PKit-2.0.3';
9
9
  export * from './OutdoorKit-1.0.4';
10
+ export * from './MediaKit-3.4.1';
10
11
  import * as device from './DeviceKit-4.13.1';
11
12
  export { device };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.6.18",
3
+ "version": "1.6.19",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -29,14 +29,14 @@
29
29
  "watch": "ray start --type=component"
30
30
  },
31
31
  "dependencies": {
32
- "@ray-js/framework": "1.6.18",
33
- "@ray-js/router": "1.6.18",
32
+ "@ray-js/framework": "1.6.19",
33
+ "@ray-js/router": "1.6.19",
34
34
  "@ray-js/wechat": "^0.2.19",
35
35
  "base64-browser": "^1.0.1",
36
36
  "query-string": "^7.1.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@ray-js/cli": "1.6.18",
39
+ "@ray-js/cli": "1.6.19",
40
40
  "art-template": "^4.13.2",
41
41
  "fs-extra": "^10.1.0",
42
42
  "miniprogram-api-typings": "^3.12.3",
@@ -46,5 +46,5 @@
46
46
  "access": "public",
47
47
  "registry": "https://registry.npmjs.com"
48
48
  },
49
- "gitHead": "537ce09350475f32d1ac01abd36cc9171f9c7ecd"
49
+ "gitHead": "4ea8520f14ca36fcd9a397609c329421ce5704db"
50
50
  }