@ray-js/api 1.6.17 → 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.
- package/@types/MediaKit.d.ts +77 -0
- package/@types/all-kits.d.ts +1 -0
- package/lib/MediaKit-3.4.1.d.ts +3 -0
- package/lib/MediaKit-3.4.1.js +11 -0
- package/lib/all-kits.d.ts +12 -0
- package/lib/all-kits.js +12 -0
- package/lib/index.d.ts +1 -11
- package/lib/index.js +2 -12
- package/package.json +5 -5
@@ -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
|
+
}
|
package/@types/all-kits.d.ts
CHANGED
@@ -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
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export * from './BaseKit-3.17.7';
|
2
|
+
export * from './BizKit-4.10.4';
|
3
|
+
export * from './DeviceKit-4.13.1';
|
4
|
+
export * from './MiniKit-3.14.1';
|
5
|
+
export * from './PlayNetKit-1.1.3';
|
6
|
+
export * from './MapKit-3.4.13';
|
7
|
+
export * from './HomeKit-3.1.4';
|
8
|
+
export * from './P2PKit-2.0.3';
|
9
|
+
export * from './OutdoorKit-1.0.4';
|
10
|
+
export * from './MediaKit-3.4.1';
|
11
|
+
import * as device from './DeviceKit-4.13.1';
|
12
|
+
export { device };
|
package/lib/all-kits.js
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
export * from './BaseKit-3.17.7';
|
2
|
+
export * from './BizKit-4.10.4';
|
3
|
+
export * from './DeviceKit-4.13.1';
|
4
|
+
export * from './MiniKit-3.14.1';
|
5
|
+
export * from './PlayNetKit-1.1.3';
|
6
|
+
export * from './MapKit-3.4.13';
|
7
|
+
export * from './HomeKit-3.1.4';
|
8
|
+
export * from './P2PKit-2.0.3';
|
9
|
+
export * from './OutdoorKit-1.0.4';
|
10
|
+
export * from './MediaKit-3.4.1';
|
11
|
+
import * as device from './DeviceKit-4.13.1';
|
12
|
+
export { device };
|
package/lib/index.d.ts
CHANGED
@@ -1,14 +1,5 @@
|
|
1
1
|
export * from './constants';
|
2
|
-
export * from './
|
3
|
-
export * from './BizKit-4.10.4';
|
4
|
-
export * from './DeviceKit-4.13.1';
|
5
|
-
export * from './MiniKit-3.14.1';
|
6
|
-
export * from './PlayNetKit-1.1.3';
|
7
|
-
export * from './MapKit-3.4.13';
|
8
|
-
export * from './HomeKit-3.1.4';
|
9
|
-
export * from './P2PKit-2.0.3';
|
10
|
-
export * from './OutdoorKit-1.0.4';
|
11
|
-
import * as device from './DeviceKit-4.13.1';
|
2
|
+
export * from './all-kits';
|
12
3
|
export declare const health: {
|
13
4
|
getHealthConnectStatus: typeof ty.health.getHealthConnectStatus;
|
14
5
|
getHealthConnectStatusSync: typeof ty.health.getHealthConnectStatusSync;
|
@@ -68,7 +59,6 @@ export declare const health: {
|
|
68
59
|
updateBpgDataUnallocated: typeof ty.health.updateBpgDataUnallocated;
|
69
60
|
deleteBpgDataUnallocated: typeof ty.health.deleteBpgDataUnallocated;
|
70
61
|
};
|
71
|
-
export { device };
|
72
62
|
export * from './lifecycles';
|
73
63
|
export { default as getApp } from './getApp';
|
74
64
|
export { default as getBoundingClientRect } from './getBoundingClientRect';
|
package/lib/index.js
CHANGED
@@ -3,20 +3,10 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
|
4
4
|
import { factory } from './utils';
|
5
5
|
export * from './constants';
|
6
|
-
export * from './
|
7
|
-
export * from './BizKit-4.10.4';
|
8
|
-
export * from './DeviceKit-4.13.1';
|
9
|
-
export * from './MiniKit-3.14.1';
|
10
|
-
export * from './PlayNetKit-1.1.3';
|
11
|
-
export * from './MapKit-3.4.13';
|
12
|
-
export * from './HomeKit-3.1.4';
|
13
|
-
export * from './P2PKit-2.0.3';
|
14
|
-
export * from './OutdoorKit-1.0.4';
|
15
|
-
import * as device from './DeviceKit-4.13.1';
|
16
|
-
import { healthCloudApi } from './cloud';
|
6
|
+
export * from './all-kits';
|
17
7
|
import { health as healthKit } from './HealthKit-5.18.4';
|
8
|
+
import { healthCloudApi } from './cloud';
|
18
9
|
export const health = _objectSpread(_objectSpread({}, healthCloudApi), healthKit);
|
19
|
-
export { device };
|
20
10
|
export * from './lifecycles';
|
21
11
|
export { default as getApp } from './getApp';
|
22
12
|
export { default as getBoundingClientRect } from './getBoundingClientRect';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "1.6.
|
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.
|
33
|
-
"@ray-js/router": "1.6.
|
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.
|
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": "
|
49
|
+
"gitHead": "4ea8520f14ca36fcd9a397609c329421ce5704db"
|
50
50
|
}
|