@ray-js/api 0.3.29 → 0.4.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.
@@ -340,7 +340,7 @@ declare namespace ty {
340
340
  export function showToast(params: {
341
341
  /** 提示的内容 */
342
342
  title: string
343
- /** 图标 'success' / 'fail' / 'loading' / 'none' */
343
+ /** 图标 'success' / 'error' / 'loading' / 'none' */
344
344
  icon?: string
345
345
  /** 自定义图标的本地路径,image 的优先级高于 icon */
346
346
  image?: string
@@ -1341,7 +1341,7 @@ declare namespace ty {
1341
1341
  export type ToastBean = {
1342
1342
  /** 提示的内容 */
1343
1343
  title: string
1344
- /** 图标 'success' / 'fail' / 'loading' / 'none' */
1344
+ /** 图标 'success' / 'error' / 'loading' / 'none' */
1345
1345
  icon?: string
1346
1346
  /** 自定义图标的本地路径,image 的优先级高于 icon */
1347
1347
  image?: string
package/README.md CHANGED
@@ -1,58 +0,0 @@
1
- # API 开放规则
2
-
3
- - 开放:文档平台能搜索到,同时 npm 包露出
4
- - 废弃:文档平台能搜索到,同时 npm 包露出,但提示方法已废弃
5
- - 不开放:文档平台搜索不到,但 npm 包露出
6
- - 废弃:文档平台搜索不到,npm 包不露出
7
-
8
- [开放规则配置文件](scripts/config.js)
9
-
10
- # API 项目编译
11
-
12
- 使用 `@ray-js/builder-component` 组件构建器,将文件按运行时拆分为多文件。
13
-
14
- ### API 分组数据来自[TTT 开放文档仓库](https://registry.code.tuya-inc.top/godzilla/minituya/-/blob/release/oss/config/api-config.json)对应本项目中的文件 `scripts/api-group-config`
15
-
16
- ### 接口元数据来自[TTT 接口](https://registry.code.tuya-inc.top/ttt/kit-meta-data.git)
17
-
18
- ### TODO
19
-
20
- - 现状:如 index.ts 会被编译成 index.{.web|.wechat|.tuya|.android|.ios|}.js 等 6 个文件
21
- - 期望:仅指定特定端文件时才生成特定端的文件,如 index.ts,只编译成 index.js、 index.tuya.ts 只编译成 index.tuya.js
22
-
23
- ## Examples
24
-
25
- ### 全平台转换
26
-
27
- input:
28
-
29
- ```
30
- src/index.ts
31
- ```
32
-
33
- output:
34
-
35
- ```
36
- index.web.js
37
- index.wechat.js
38
- index.native.js
39
- index.js
40
- ```
41
-
42
- ### 按需平台
43
-
44
- input:
45
-
46
- ```
47
- src/index.ts
48
- src/index.wechat.ts
49
- ```
50
-
51
- output:
52
-
53
- ```
54
- index.web.js
55
- index.wechat.js # 原文件转换
56
- index.native.js
57
- index.js
58
- ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "0.3.29",
3
+ "version": "0.4.0",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -26,12 +26,12 @@
26
26
  "build:kit:api": "node scripts/api-creator.mjs"
27
27
  },
28
28
  "dependencies": {
29
- "@ray-js/framework": "^0.3.29",
30
- "@ray-js/framework-native": "^0.3.29",
31
- "@ray-js/ray-panel-notification": "^0.3.29",
32
- "@ray-js/router": "^0.3.29",
33
- "@ray-js/router-native": "^0.3.29",
34
- "@ray-js/runtime-native": "^0.3.29",
29
+ "@ray-js/framework": "^0.4.0",
30
+ "@ray-js/framework-native": "^0.4.0",
31
+ "@ray-js/ray-panel-notification": "^0.4.0",
32
+ "@ray-js/router": "^0.4.0",
33
+ "@ray-js/router-native": "^0.4.0",
34
+ "@ray-js/runtime-native": "^0.4.0",
35
35
  "@tuya-miniapp/base-kit": "^2.1.2",
36
36
  "@tuya-miniapp/device-kit": "^2.1.6",
37
37
  "@tuya-miniapp/mini-kit": "^2.3.7",
@@ -39,7 +39,7 @@
39
39
  "react-native": "0.59.10"
40
40
  },
41
41
  "devDependencies": {
42
- "@ray-js/cli": "^0.3.29",
42
+ "@ray-js/cli": "^0.4.0",
43
43
  "art-template": "^4.13.2",
44
44
  "fs-extra": "^10.1.0",
45
45
  "miniprogram-api-typings": "^3.4.3",
@@ -51,6 +51,6 @@
51
51
  "email": "tuyafe@tuya.com"
52
52
  }
53
53
  ],
54
- "gitHead": "dca5dce8f3bd713ec20bb89c10fdc3a9fd3d5a29",
54
+ "gitHead": "7e2441a697944a39714a627b6065e4829cfd8924",
55
55
  "repository": {}
56
56
  }