@ray-js/adapter 0.5.7-beta-2

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.
Files changed (252) hide show
  1. package/CHANGELOG.md +163 -0
  2. package/LICENSE.md +9 -0
  3. package/cjs/hostComponents/Button/index.d.ts +16 -0
  4. package/cjs/hostComponents/Button/index.js +15 -0
  5. package/cjs/hostComponents/Button/node.d.ts +28 -0
  6. package/cjs/hostComponents/Button/node.js +31 -0
  7. package/cjs/hostComponents/Canvas/index.d.ts +19 -0
  8. package/cjs/hostComponents/Canvas/index.js +5 -0
  9. package/cjs/hostComponents/Canvas/node.d.ts +19 -0
  10. package/cjs/hostComponents/Canvas/node.js +22 -0
  11. package/cjs/hostComponents/Checkbox/index.d.ts +13 -0
  12. package/cjs/hostComponents/Checkbox/index.js +9 -0
  13. package/cjs/hostComponents/Checkbox/node.d.ts +11 -0
  14. package/cjs/hostComponents/Checkbox/node.js +14 -0
  15. package/cjs/hostComponents/CheckboxGroup/index.d.ts +10 -0
  16. package/cjs/hostComponents/CheckboxGroup/index.js +5 -0
  17. package/cjs/hostComponents/CheckboxGroup/node.d.ts +9 -0
  18. package/cjs/hostComponents/CheckboxGroup/node.js +12 -0
  19. package/cjs/hostComponents/CoverView/index.d.ts +6 -0
  20. package/cjs/hostComponents/CoverView/index.js +6 -0
  21. package/cjs/hostComponents/CoverView/node.d.ts +7 -0
  22. package/cjs/hostComponents/CoverView/node.js +10 -0
  23. package/cjs/hostComponents/Form/index.d.ts +13 -0
  24. package/cjs/hostComponents/Form/index.js +9 -0
  25. package/cjs/hostComponents/Form/node.d.ts +11 -0
  26. package/cjs/hostComponents/Form/node.js +14 -0
  27. package/cjs/hostComponents/Image/index.d.ts +43 -0
  28. package/cjs/hostComponents/Image/index.js +10 -0
  29. package/cjs/hostComponents/Image/node.d.ts +18 -0
  30. package/cjs/hostComponents/Image/node.js +21 -0
  31. package/cjs/hostComponents/Input/index.d.ts +25 -0
  32. package/cjs/hostComponents/Input/index.js +18 -0
  33. package/cjs/hostComponents/Input/node.d.ts +27 -0
  34. package/cjs/hostComponents/Input/node.js +30 -0
  35. package/cjs/hostComponents/IpcPlayer/index.d.ts +42 -0
  36. package/cjs/hostComponents/IpcPlayer/index.js +24 -0
  37. package/cjs/hostComponents/IpcPlayer/node.d.ts +33 -0
  38. package/cjs/hostComponents/IpcPlayer/node.js +36 -0
  39. package/cjs/hostComponents/Label/index.d.ts +7 -0
  40. package/cjs/hostComponents/Label/index.js +5 -0
  41. package/cjs/hostComponents/Label/node.d.ts +10 -0
  42. package/cjs/hostComponents/Label/node.js +13 -0
  43. package/cjs/hostComponents/MovableArea/index.d.ts +7 -0
  44. package/cjs/hostComponents/MovableArea/index.js +8 -0
  45. package/cjs/hostComponents/MovableArea/node.d.ts +8 -0
  46. package/cjs/hostComponents/MovableArea/node.js +11 -0
  47. package/cjs/hostComponents/MovableView/index.d.ts +25 -0
  48. package/cjs/hostComponents/MovableView/index.js +21 -0
  49. package/cjs/hostComponents/MovableView/node.d.ts +23 -0
  50. package/cjs/hostComponents/MovableView/node.js +26 -0
  51. package/cjs/hostComponents/PageContainer/index.d.ts +20 -0
  52. package/cjs/hostComponents/PageContainer/index.js +14 -0
  53. package/cjs/hostComponents/PageContainer/node.d.ts +23 -0
  54. package/cjs/hostComponents/PageContainer/node.js +26 -0
  55. package/cjs/hostComponents/Picker/index.d.ts +64 -0
  56. package/cjs/hostComponents/Picker/index.js +13 -0
  57. package/cjs/hostComponents/Picker/node.d.ts +22 -0
  58. package/cjs/hostComponents/Picker/node.js +25 -0
  59. package/cjs/hostComponents/PickerView/index.d.ts +14 -0
  60. package/cjs/hostComponents/PickerView/index.js +5 -0
  61. package/cjs/hostComponents/PickerView/node.d.ts +12 -0
  62. package/cjs/hostComponents/PickerView/node.js +15 -0
  63. package/cjs/hostComponents/PickerViewColumn/index.d.ts +4 -0
  64. package/cjs/hostComponents/PickerViewColumn/index.js +5 -0
  65. package/cjs/hostComponents/PickerViewColumn/node.d.ts +7 -0
  66. package/cjs/hostComponents/PickerViewColumn/node.js +10 -0
  67. package/cjs/hostComponents/Radio/index.d.ts +13 -0
  68. package/cjs/hostComponents/Radio/index.js +9 -0
  69. package/cjs/hostComponents/Radio/node.d.ts +11 -0
  70. package/cjs/hostComponents/Radio/node.js +14 -0
  71. package/cjs/hostComponents/RadioGroup/index.d.ts +11 -0
  72. package/cjs/hostComponents/RadioGroup/index.js +5 -0
  73. package/cjs/hostComponents/RadioGroup/node.d.ts +9 -0
  74. package/cjs/hostComponents/RadioGroup/node.js +12 -0
  75. package/cjs/hostComponents/ScrollView/index.d.ts +17 -0
  76. package/cjs/hostComponents/ScrollView/index.js +9 -0
  77. package/cjs/hostComponents/ScrollView/node.d.ts +25 -0
  78. package/cjs/hostComponents/ScrollView/node.js +28 -0
  79. package/cjs/hostComponents/Slider/index.d.ts +27 -0
  80. package/cjs/hostComponents/Slider/index.js +16 -0
  81. package/cjs/hostComponents/Slider/node.d.ts +16 -0
  82. package/cjs/hostComponents/Slider/node.js +19 -0
  83. package/cjs/hostComponents/Swiper/index.d.ts +21 -0
  84. package/cjs/hostComponents/Swiper/index.js +15 -0
  85. package/cjs/hostComponents/Swiper/node.d.ts +25 -0
  86. package/cjs/hostComponents/Swiper/node.js +28 -0
  87. package/cjs/hostComponents/SwiperItem/index.d.ts +7 -0
  88. package/cjs/hostComponents/SwiperItem/index.js +5 -0
  89. package/cjs/hostComponents/SwiperItem/node.d.ts +9 -0
  90. package/cjs/hostComponents/SwiperItem/node.js +12 -0
  91. package/cjs/hostComponents/Switch/index.d.ts +19 -0
  92. package/cjs/hostComponents/Switch/index.js +14 -0
  93. package/cjs/hostComponents/Switch/node.d.ts +13 -0
  94. package/cjs/hostComponents/Switch/node.js +16 -0
  95. package/cjs/hostComponents/Text/index.d.ts +8 -0
  96. package/cjs/hostComponents/Text/index.js +9 -0
  97. package/cjs/hostComponents/Text/node.d.ts +13 -0
  98. package/cjs/hostComponents/Text/node.js +16 -0
  99. package/cjs/hostComponents/Textarea/index.d.ts +24 -0
  100. package/cjs/hostComponents/Textarea/index.js +16 -0
  101. package/cjs/hostComponents/Textarea/node.d.ts +26 -0
  102. package/cjs/hostComponents/Textarea/node.js +29 -0
  103. package/cjs/hostComponents/Video/index.d.ts +37 -0
  104. package/cjs/hostComponents/Video/index.js +5 -0
  105. package/cjs/hostComponents/Video/node.d.ts +36 -0
  106. package/cjs/hostComponents/Video/node.js +40 -0
  107. package/cjs/hostComponents/View/index.d.ts +24 -0
  108. package/cjs/hostComponents/View/index.js +11 -0
  109. package/cjs/hostComponents/View/node.d.ts +27 -0
  110. package/cjs/hostComponents/View/node.js +31 -0
  111. package/cjs/hostComponents/index.d.ts +27 -0
  112. package/cjs/hostComponents/index.js +43 -0
  113. package/cjs/hostComponents/node.d.ts +2 -0
  114. package/cjs/hostComponents/node.js +81 -0
  115. package/cjs/index.d.ts +2 -0
  116. package/cjs/index.js +18 -0
  117. package/cjs/node/index.d.ts +3 -0
  118. package/cjs/node/index.js +48 -0
  119. package/cjs/types/component.d.ts +79 -0
  120. package/cjs/types/component.js +2 -0
  121. package/cjs/types/config.d.ts +185 -0
  122. package/cjs/types/config.js +2 -0
  123. package/cjs/types/index.d.ts +2 -0
  124. package/cjs/types/index.js +17 -0
  125. package/esm/hostComponents/Button/index.d.ts +16 -0
  126. package/esm/hostComponents/Button/index.js +12 -0
  127. package/esm/hostComponents/Button/node.d.ts +28 -0
  128. package/esm/hostComponents/Button/node.js +28 -0
  129. package/esm/hostComponents/Canvas/index.d.ts +19 -0
  130. package/esm/hostComponents/Canvas/index.js +2 -0
  131. package/esm/hostComponents/Canvas/node.d.ts +19 -0
  132. package/esm/hostComponents/Canvas/node.js +19 -0
  133. package/esm/hostComponents/Checkbox/index.d.ts +13 -0
  134. package/esm/hostComponents/Checkbox/index.js +6 -0
  135. package/esm/hostComponents/Checkbox/node.d.ts +11 -0
  136. package/esm/hostComponents/Checkbox/node.js +11 -0
  137. package/esm/hostComponents/CheckboxGroup/index.d.ts +10 -0
  138. package/esm/hostComponents/CheckboxGroup/index.js +2 -0
  139. package/esm/hostComponents/CheckboxGroup/node.d.ts +9 -0
  140. package/esm/hostComponents/CheckboxGroup/node.js +9 -0
  141. package/esm/hostComponents/CoverView/index.d.ts +6 -0
  142. package/esm/hostComponents/CoverView/index.js +3 -0
  143. package/esm/hostComponents/CoverView/node.d.ts +7 -0
  144. package/esm/hostComponents/CoverView/node.js +7 -0
  145. package/esm/hostComponents/Form/index.d.ts +13 -0
  146. package/esm/hostComponents/Form/index.js +6 -0
  147. package/esm/hostComponents/Form/node.d.ts +11 -0
  148. package/esm/hostComponents/Form/node.js +11 -0
  149. package/esm/hostComponents/Image/index.d.ts +43 -0
  150. package/esm/hostComponents/Image/index.js +7 -0
  151. package/esm/hostComponents/Image/node.d.ts +18 -0
  152. package/esm/hostComponents/Image/node.js +18 -0
  153. package/esm/hostComponents/Input/index.d.ts +25 -0
  154. package/esm/hostComponents/Input/index.js +15 -0
  155. package/esm/hostComponents/Input/node.d.ts +27 -0
  156. package/esm/hostComponents/Input/node.js +27 -0
  157. package/esm/hostComponents/IpcPlayer/index.d.ts +42 -0
  158. package/esm/hostComponents/IpcPlayer/index.js +21 -0
  159. package/esm/hostComponents/IpcPlayer/node.d.ts +33 -0
  160. package/esm/hostComponents/IpcPlayer/node.js +33 -0
  161. package/esm/hostComponents/Label/index.d.ts +7 -0
  162. package/esm/hostComponents/Label/index.js +2 -0
  163. package/esm/hostComponents/Label/node.d.ts +10 -0
  164. package/esm/hostComponents/Label/node.js +10 -0
  165. package/esm/hostComponents/MovableArea/index.d.ts +7 -0
  166. package/esm/hostComponents/MovableArea/index.js +5 -0
  167. package/esm/hostComponents/MovableArea/node.d.ts +8 -0
  168. package/esm/hostComponents/MovableArea/node.js +8 -0
  169. package/esm/hostComponents/MovableView/index.d.ts +25 -0
  170. package/esm/hostComponents/MovableView/index.js +18 -0
  171. package/esm/hostComponents/MovableView/node.d.ts +23 -0
  172. package/esm/hostComponents/MovableView/node.js +23 -0
  173. package/esm/hostComponents/PageContainer/index.d.ts +20 -0
  174. package/esm/hostComponents/PageContainer/index.js +11 -0
  175. package/esm/hostComponents/PageContainer/node.d.ts +23 -0
  176. package/esm/hostComponents/PageContainer/node.js +23 -0
  177. package/esm/hostComponents/Picker/index.d.ts +64 -0
  178. package/esm/hostComponents/Picker/index.js +10 -0
  179. package/esm/hostComponents/Picker/node.d.ts +22 -0
  180. package/esm/hostComponents/Picker/node.js +22 -0
  181. package/esm/hostComponents/PickerView/index.d.ts +14 -0
  182. package/esm/hostComponents/PickerView/index.js +2 -0
  183. package/esm/hostComponents/PickerView/node.d.ts +12 -0
  184. package/esm/hostComponents/PickerView/node.js +12 -0
  185. package/esm/hostComponents/PickerViewColumn/index.d.ts +4 -0
  186. package/esm/hostComponents/PickerViewColumn/index.js +2 -0
  187. package/esm/hostComponents/PickerViewColumn/node.d.ts +7 -0
  188. package/esm/hostComponents/PickerViewColumn/node.js +7 -0
  189. package/esm/hostComponents/Radio/index.d.ts +13 -0
  190. package/esm/hostComponents/Radio/index.js +6 -0
  191. package/esm/hostComponents/Radio/node.d.ts +11 -0
  192. package/esm/hostComponents/Radio/node.js +11 -0
  193. package/esm/hostComponents/RadioGroup/index.d.ts +11 -0
  194. package/esm/hostComponents/RadioGroup/index.js +2 -0
  195. package/esm/hostComponents/RadioGroup/node.d.ts +9 -0
  196. package/esm/hostComponents/RadioGroup/node.js +9 -0
  197. package/esm/hostComponents/ScrollView/index.d.ts +17 -0
  198. package/esm/hostComponents/ScrollView/index.js +6 -0
  199. package/esm/hostComponents/ScrollView/node.d.ts +25 -0
  200. package/esm/hostComponents/ScrollView/node.js +25 -0
  201. package/esm/hostComponents/Slider/index.d.ts +27 -0
  202. package/esm/hostComponents/Slider/index.js +13 -0
  203. package/esm/hostComponents/Slider/node.d.ts +16 -0
  204. package/esm/hostComponents/Slider/node.js +16 -0
  205. package/esm/hostComponents/Swiper/index.d.ts +21 -0
  206. package/esm/hostComponents/Swiper/index.js +12 -0
  207. package/esm/hostComponents/Swiper/node.d.ts +25 -0
  208. package/esm/hostComponents/Swiper/node.js +25 -0
  209. package/esm/hostComponents/SwiperItem/index.d.ts +7 -0
  210. package/esm/hostComponents/SwiperItem/index.js +2 -0
  211. package/esm/hostComponents/SwiperItem/node.d.ts +9 -0
  212. package/esm/hostComponents/SwiperItem/node.js +9 -0
  213. package/esm/hostComponents/Switch/index.d.ts +19 -0
  214. package/esm/hostComponents/Switch/index.js +11 -0
  215. package/esm/hostComponents/Switch/node.d.ts +13 -0
  216. package/esm/hostComponents/Switch/node.js +13 -0
  217. package/esm/hostComponents/Text/index.d.ts +8 -0
  218. package/esm/hostComponents/Text/index.js +6 -0
  219. package/esm/hostComponents/Text/node.d.ts +13 -0
  220. package/esm/hostComponents/Text/node.js +13 -0
  221. package/esm/hostComponents/Textarea/index.d.ts +24 -0
  222. package/esm/hostComponents/Textarea/index.js +13 -0
  223. package/esm/hostComponents/Textarea/node.d.ts +26 -0
  224. package/esm/hostComponents/Textarea/node.js +26 -0
  225. package/esm/hostComponents/Video/index.d.ts +37 -0
  226. package/esm/hostComponents/Video/index.js +2 -0
  227. package/esm/hostComponents/Video/node.d.ts +36 -0
  228. package/esm/hostComponents/Video/node.js +37 -0
  229. package/esm/hostComponents/View/index.d.ts +24 -0
  230. package/esm/hostComponents/View/index.js +8 -0
  231. package/esm/hostComponents/View/node.d.ts +27 -0
  232. package/esm/hostComponents/View/node.js +28 -0
  233. package/esm/hostComponents/index.d.ts +27 -0
  234. package/esm/hostComponents/index.js +27 -0
  235. package/esm/hostComponents/node.d.ts +2 -0
  236. package/esm/hostComponents/node.js +56 -0
  237. package/esm/index.d.ts +2 -0
  238. package/esm/index.js +2 -0
  239. package/esm/node/index.d.ts +3 -0
  240. package/esm/node/index.js +20 -0
  241. package/esm/types/component.d.ts +79 -0
  242. package/esm/types/component.js +1 -0
  243. package/esm/types/config.d.ts +185 -0
  244. package/esm/types/config.js +1 -0
  245. package/esm/types/index.d.ts +2 -0
  246. package/esm/types/index.js +1 -0
  247. package/node.js +1 -0
  248. package/package.json +40 -0
  249. package/templates/base.ejs +23 -0
  250. package/templates/component.ejs +47 -0
  251. package/templates/page.ejs +3 -0
  252. package/tsconfig.build.json +8 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,163 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
4
+
5
+ ### [0.5.7-beta-2](./compare/v0.5.7-beta-1...v0.5.7-beta-2) (2022-09-21)
6
+
7
+ **Note:** Version bump only for package @ray-js/adapter
8
+
9
+ ### [0.5.7-beta-1](./compare/v0.5.6-beta-2...v0.5.7-beta-1) (2022-09-20)
10
+
11
+ **Note:** Version bump only for package @ray-js/remax-tuya
12
+
13
+ ### [0.5.6-beta-2](./compare/v0.5.6-beta-1...v0.5.6-beta-2) (2022-09-19)
14
+
15
+ **Note:** Version bump only for package @ray-js/remax-tuya
16
+
17
+ ### [0.5.6-beta-1](./compare/v0.5.4...v0.5.6-beta-1) (2022-09-15)
18
+
19
+ ### Bug Fixes
20
+
21
+ - 升级 ray-core,解决 webpack5 缓存导致的问题 ([a5205d0](./commit/a5205d09ebf1ef344b16ab264ac9acfc3db76839))
22
+
23
+ ### [0.5.4-beta-1](./compare/v0.5.1...v0.5.4-beta-1) (2022-09-06)
24
+
25
+ ### Features
26
+
27
+ - remax => ray-core ([5f503f6](./commit/5f503f6e70767886b1b5f4395776aafd06926687))
28
+ - 升级 ray-core 版本 ([cb1165c](./commit/cb1165c7a53a039d7c0b47945b0f01cbe2fd6c50))
29
+
30
+ ### Bug Fixes
31
+
32
+ - ray-core 版本升级,修复依赖丢失问题 ([491e9ee](./commit/491e9ee284200f6aceeafa586444efc2ae0482aa))
33
+
34
+ ### [0.5.3-beta-3](./compare/v0.5.3-beta-2...v0.5.3-beta-3) (2022-09-06)
35
+
36
+ **Note:** Version bump only for package @ray-js/remax-tuya
37
+
38
+ ### [0.5.3-beta-2](./compare/v0.5.3-beta-1...v0.5.3-beta-2) (2022-09-06)
39
+
40
+ **Note:** Version bump only for package @ray-js/remax-tuya
41
+
42
+ ### [0.5.3-beta-1](./compare/v0.5.1...v0.5.3-beta-1) (2022-09-05)
43
+
44
+ ### Features
45
+
46
+ - remax => ray-core ([5f503f6](./commit/5f503f6e70767886b1b5f4395776aafd06926687))
47
+ - 升级 ray-core 版本 ([cb1165c](./commit/cb1165c7a53a039d7c0b47945b0f01cbe2fd6c50))
48
+
49
+ ### Bug Fixes
50
+
51
+ - ray-core 版本升级,修复依赖丢失问题 ([491e9ee](./commit/491e9ee284200f6aceeafa586444efc2ae0482aa))
52
+
53
+ ### [0.4.10-beta-1](./compare/v0.4.8...v0.4.10-beta-1) (2022-08-30)
54
+
55
+ **Note:** Version bump only for package @ray-js/remax-tuya
56
+
57
+ ### [0.4.6-beta-3](./compare/v0.4.6-beta-2...v0.4.6-beta-3) (2022-08-23)
58
+
59
+ **Note:** Version bump only for package @ray-js/remax-tuya
60
+
61
+ ### [0.4.6-beta-2](./compare/v0.4.6-beta-1...v0.4.6-beta-2) (2022-08-22)
62
+
63
+ **Note:** Version bump only for package @ray-js/remax-tuya
64
+
65
+ ### [0.4.6-beta-1](./compare/v0.4.2...v0.4.6-beta-1) (2022-08-22)
66
+
67
+ ### Features
68
+
69
+ - cover-view ([9c60e3a](./commit/9c60e3ac54d2b2b299ada0e70aaf1220b3c160d5))
70
+ - ipc-player ([c9fa587](./commit/c9fa587a3fdeef11c732cc1cf3ec5b45c4b4bde7))
71
+
72
+ ### Bug Fixes
73
+
74
+ - 涂鸦模板 key 表达式格式错误 ([9aeaf04](./commit/9aeaf046326c4a2a8a63e295720697236dba92bb))
75
+
76
+ ### [0.4.1-beta-1](./compare/v0.3.31...v0.4.1-beta-1) (2022-08-11)
77
+
78
+ ### Features
79
+
80
+ - cover-view ([b08f5a5](./commit/b08f5a5640486e2d1ff580fe4961ef837a3b2e34))
81
+ - ipc-player ([6922cdb](./commit/6922cdbd346d4fbee0900fca1d6be87047d9c937))
82
+
83
+ ### [0.3.25-beta-1dd5f2fb](./compare/v0.3.24-beta-33dd510c...v0.3.25-beta-1dd5f2fb) (2022-07-08)
84
+
85
+ **Note:** Version bump only for package @ray-js/remax-tuya
86
+
87
+ ### [0.3.24-beta-33dd510c](./compare/v0.3.24-beta-d1e45036...v0.3.24-beta-33dd510c) (2022-07-08)
88
+
89
+ **Note:** Version bump only for package @ray-js/remax-tuya
90
+
91
+ ### [0.3.24-beta-d1e45036](./compare/v0.3.24-beta-f16861cb...v0.3.24-beta-d1e45036) (2022-07-08)
92
+
93
+ **Note:** Version bump only for package @ray-js/remax-tuya
94
+
95
+ ### [0.3.24-beta-f16861cb](./compare/v0.3.23...v0.3.24-beta-f16861cb) (2022-07-08)
96
+
97
+ **Note:** Version bump only for package @ray-js/remax-tuya
98
+
99
+ ### [0.3.23-beta-bd924626](./compare/v0.3.21-beta-a85b04d0...v0.3.23-beta-bd924626) (2022-07-07)
100
+
101
+ **Note:** Version bump only for package @ray-js/remax-tuya
102
+
103
+ ### [0.3.21-beta-a85b04d0](./compare/v0.3.21-beta-b00e2ece...v0.3.21-beta-a85b04d0) (2022-06-21)
104
+
105
+ **Note:** Version bump only for package @ray-js/remax-tuya
106
+
107
+ ### [0.3.21-beta-b00e2ece](./compare/v0.3.20-beta-95743fa5...v0.3.21-beta-b00e2ece) (2022-06-21)
108
+
109
+ **Note:** Version bump only for package @ray-js/remax-tuya
110
+
111
+ ### [0.3.20-beta-95743fa5](./compare/v0.3.19-beta-a6eb801d...v0.3.20-beta-95743fa5) (2022-06-15)
112
+
113
+ **Note:** Version bump only for package @ray-js/remax-tuya
114
+
115
+ ### [0.3.19-beta-a6eb801d](./compare/v0.3.17-beta-75b85d66...v0.3.19-beta-a6eb801d) (2022-06-10)
116
+
117
+ **Note:** Version bump only for package @ray-js/remax-tuya
118
+
119
+ ### [0.3.17-beta-75b85d66](./compare/v0.3.15-beta-720ccfd3...v0.3.17-beta-75b85d66) (2022-06-09)
120
+
121
+ **Note:** Version bump only for package @ray-js/remax-tuya
122
+
123
+ ### [0.3.15-beta-720ccfd3](./compare/v0.3.13-beta-bb326407...v0.3.15-beta-720ccfd3) (2022-06-02)
124
+
125
+ **Note:** Version bump only for package @ray-js/remax-tuya
126
+
127
+ ### [0.3.13-beta-bb326407](./compare/v0.3.10...v0.3.13-beta-bb326407) (2022-05-27)
128
+
129
+ **Note:** Version bump only for package @ray-js/remax-tuya
130
+
131
+ ### [0.3.12-beta-09246069](./compare/v0.3.10...v0.3.12-beta-09246069) (2022-05-25)
132
+
133
+ **Note:** Version bump only for package @ray-js/remax-tuya
134
+
135
+ ### [0.3.10-beta.0172b845](./compare/v0.3.8-beta.72a03a4e...v0.3.10-beta.0172b845) (2022-05-24)
136
+
137
+ **Note:** Version bump only for package @ray-js/remax-tuya
138
+
139
+ ### [0.3.8-beta.72a03a4e](./compare/v0.3.7-beta.7766a54a...v0.3.8-beta.72a03a4e) (2022-05-22)
140
+
141
+ **Note:** Version bump only for package @ray-js/remax-tuya
142
+
143
+ ### [0.3.7-beta.7766a54a](./compare/v0.3.6-beta.62a2f3ec...v0.3.7-beta.7766a54a) (2022-05-20)
144
+
145
+ **Note:** Version bump only for package @ray-js/remax-tuya
146
+
147
+ ### [0.3.6-beta.62a2f3ec](./compare/v0.3.5-beta.e91aaede...v0.3.6-beta.62a2f3ec) (2022-05-20)
148
+
149
+ ## [0.2.0-beta.13](./compare/v0.2.0-beta.12...v0.2.0-beta.13) (2022-05-17)
150
+
151
+ ## [0.2.0-beta.12](./compare/v0.3.4...v0.2.0-beta.12) (2022-05-17)
152
+
153
+ **Note:** Version bump only for package @ray-js/remax-tuya
154
+
155
+ ### [0.3.4](./compare/v0.3.4-beta.d160b993...v0.3.4) (2022-05-16)
156
+
157
+ **Note:** Version bump only for package @ray-js/remax-tuya
158
+
159
+ ### [0.3.4-beta.d160b993](./compare/v0.3.0-beta.1c347991...v0.3.4-beta.d160b993) (2022-05-16)
160
+
161
+ ### Bug Fixes
162
+
163
+ - remove author ([0807fad](./commit/0807fad8dd7c8ef926443b991f26e6e025736fd6))
package/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ Copyright © 2014-2022 Tuya.inc
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { BaseProps } from '../../types/component';
3
+ export interface ButtonProps extends BaseProps {
4
+ size?: 'mini' | 'default';
5
+ type?: 'primary' | 'default' | 'warn';
6
+ disabled?: boolean;
7
+ loading?: boolean;
8
+ formType?: 'submit' | 'reset';
9
+ plain?: boolean;
10
+ hoverClassName?: string;
11
+ hoverStartTime?: number;
12
+ hoverStayTime?: number;
13
+ hoverStopPropagation?: boolean;
14
+ children?: React.ReactNode;
15
+ }
16
+ export declare const Button: React.ComponentType<ButtonProps>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Button = void 0;
4
+ const runtime_1 = require("@ray-core/runtime");
5
+ exports.Button = (0, runtime_1.createHostComponent)('button');
6
+ exports.Button.defaultProps = {
7
+ size: 'default',
8
+ type: 'default',
9
+ hoverClassName: 'button-hover',
10
+ hoverStartTime: 20,
11
+ hoverStayTime: 70,
12
+ disabled: false,
13
+ loading: false,
14
+ hoverStopPropagation: false,
15
+ };
@@ -0,0 +1,28 @@
1
+ export declare const alias: {
2
+ className: string;
3
+ animation: string;
4
+ id: string;
5
+ style: string;
6
+ size: string;
7
+ type: string;
8
+ plain: string;
9
+ disabled: string;
10
+ loading: string;
11
+ formType: string;
12
+ openType: string;
13
+ hoverClassName: string;
14
+ hoverStartTime: string;
15
+ hoverStayTime: string;
16
+ hoverStopPropagation: string;
17
+ onGetPhoneNumber: string;
18
+ onTap: string;
19
+ onClick: string;
20
+ onTouchStart: string;
21
+ onTouchMove: string;
22
+ onTouchEnd: string;
23
+ onTouchCancel: string;
24
+ onLongTap: string;
25
+ onLongClick: string;
26
+ onLongPress: string;
27
+ };
28
+ export declare const props: string[];
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.props = exports.alias = void 0;
4
+ exports.alias = {
5
+ className: 'class',
6
+ animation: 'animation',
7
+ id: 'id',
8
+ style: 'style',
9
+ size: 'size',
10
+ type: 'type',
11
+ plain: 'plain',
12
+ disabled: 'disabled',
13
+ loading: 'loading',
14
+ formType: 'form-type',
15
+ openType: 'open-type',
16
+ hoverClassName: 'hover-class',
17
+ hoverStartTime: 'hover-start-time',
18
+ hoverStayTime: 'hover-stay-time',
19
+ hoverStopPropagation: 'hover-stop-propagation',
20
+ onGetPhoneNumber: 'bindgetphonenumber',
21
+ onTap: 'bindtap',
22
+ onClick: 'bindtap',
23
+ onTouchStart: 'bindtouchstart',
24
+ onTouchMove: 'bindtouchmove',
25
+ onTouchEnd: 'bindtouchend',
26
+ onTouchCancel: 'bindtouchcancel',
27
+ onLongTap: 'bindlongtap',
28
+ onLongClick: 'bindlongtap',
29
+ onLongPress: 'bindlongpress',
30
+ };
31
+ exports.props = Object.values(exports.alias);
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import { GenericEvent } from '../../types';
3
+ export interface CanvasProps {
4
+ readonly dataset?: DOMStringMap;
5
+ id?: string;
6
+ style?: React.CSSProperties;
7
+ className?: string;
8
+ onTap?: (e: any) => void;
9
+ type?: string;
10
+ canvasId?: string;
11
+ disableScroll?: string;
12
+ onTouchStart?: (event: GenericEvent) => void;
13
+ onTouchMove?: (event: GenericEvent) => void;
14
+ onTouchEnd?: (event: GenericEvent) => void;
15
+ onTouchCancel?: (event: GenericEvent) => void;
16
+ onLongTap?: (event: GenericEvent) => void;
17
+ onError?: (event: GenericEvent) => void;
18
+ }
19
+ export declare const Canvas: React.ComponentType<CanvasProps>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Canvas = void 0;
4
+ const runtime_1 = require("@ray-core/runtime");
5
+ exports.Canvas = (0, runtime_1.createHostComponent)('canvas');
@@ -0,0 +1,19 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ style: string;
4
+ className: string;
5
+ animation: string;
6
+ disableScroll: string;
7
+ type: string;
8
+ canvasId: string;
9
+ onTouchStart: string;
10
+ onTouchMove: string;
11
+ onTouchEnd: string;
12
+ onTouchCancel: string;
13
+ onError: string;
14
+ onLongTap: string;
15
+ onLongClick: string;
16
+ onTap: string;
17
+ onClick: string;
18
+ };
19
+ export declare const props: string[];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.props = exports.alias = void 0;
4
+ exports.alias = {
5
+ id: 'id',
6
+ style: 'style',
7
+ className: 'class',
8
+ animation: 'animation',
9
+ disableScroll: 'disable-scroll',
10
+ type: 'type',
11
+ canvasId: 'canvas-id',
12
+ onTouchStart: 'bindtouchstart',
13
+ onTouchMove: 'bindtouchmove',
14
+ onTouchEnd: 'bindtouchend',
15
+ onTouchCancel: 'bindtouchcancel',
16
+ onError: 'binderror',
17
+ onLongTap: 'bindlongtap',
18
+ onLongClick: 'bindlongtap',
19
+ onTap: 'bindtap',
20
+ onClick: 'bindtap',
21
+ };
22
+ exports.props = Object.values(exports.alias);
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { BaseProps } from '../../types/component';
3
+ export interface CheckboxProps extends BaseProps {
4
+ /** checkbox 标识,选中时触发 checkbox-group 的 change 事件,并携带 checkbox 的 value */
5
+ value?: string;
6
+ /** 是否禁用 */
7
+ disabled?: boolean;
8
+ /** 当前是否选中,可用来设置默认选中 */
9
+ checked?: boolean;
10
+ /** (default: #09BB07) checkbox的颜色,同css的color */
11
+ color?: string;
12
+ }
13
+ export declare const Checkbox: React.ComponentType<CheckboxProps>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Checkbox = void 0;
4
+ const runtime_1 = require("@ray-core/runtime");
5
+ exports.Checkbox = (0, runtime_1.createHostComponent)('checkbox');
6
+ exports.Checkbox.defaultProps = {
7
+ disabled: false,
8
+ checked: false,
9
+ };
@@ -0,0 +1,11 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ animation: string;
5
+ style: string;
6
+ value: string;
7
+ checked: string;
8
+ disabled: string;
9
+ color: string;
10
+ };
11
+ export declare const props: string[];
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.props = exports.alias = void 0;
4
+ exports.alias = {
5
+ id: 'id',
6
+ className: 'class',
7
+ animation: 'animation',
8
+ style: 'style',
9
+ value: 'value',
10
+ checked: 'checked',
11
+ disabled: 'disabled',
12
+ color: 'color',
13
+ };
14
+ exports.props = Object.values(exports.alias);
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { BaseProps, GenericEvent } from '../../types/component';
3
+ export interface CheckboxGroupProps extends BaseProps {
4
+ name?: string;
5
+ /**
6
+ * checkbox-group 中选中项发生改变时触发 change 事件,detail = {value:[选中的 checkbox 的 value 的数组]}
7
+ */
8
+ onChange?: (event: GenericEvent) => void;
9
+ }
10
+ export declare const CheckboxGroup: React.ComponentType<CheckboxGroupProps>;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckboxGroup = void 0;
4
+ const runtime_1 = require("@ray-core/runtime");
5
+ exports.CheckboxGroup = (0, runtime_1.createHostComponent)('checkbox-group');
@@ -0,0 +1,9 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ animation: string;
5
+ style: string;
6
+ name: string;
7
+ onChange: string;
8
+ };
9
+ export declare const props: string[];
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.props = exports.alias = void 0;
4
+ exports.alias = {
5
+ id: 'id',
6
+ className: 'class',
7
+ animation: 'animation',
8
+ style: 'style',
9
+ name: 'name',
10
+ onChange: 'bindchange',
11
+ };
12
+ exports.props = Object.values(exports.alias);
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import { BaseProps } from '../../types/component';
3
+ export interface CoverViewProps extends BaseProps {
4
+ children?: any;
5
+ }
6
+ export declare const CoverView: React.ComponentType<CoverViewProps>;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CoverView = void 0;
4
+ const runtime_1 = require("@ray-core/runtime");
5
+ exports.CoverView = (0, runtime_1.createHostComponent)('cover-view');
6
+ exports.CoverView.defaultProps = {};
@@ -0,0 +1,7 @@
1
+ export declare const alias: {
2
+ className: string;
3
+ animation: string;
4
+ style: string;
5
+ id: string;
6
+ };
7
+ export declare const props: string[];
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.props = exports.alias = void 0;
4
+ exports.alias = {
5
+ className: 'class',
6
+ animation: 'animation',
7
+ style: 'style',
8
+ id: 'id',
9
+ };
10
+ exports.props = Object.values(exports.alias);
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { BaseProps, GenericEvent } from '../../types/component';
3
+ export interface FormProps extends BaseProps {
4
+ /** 是否返回 formId 用于发送模板消息 */
5
+ reportSubmit?: boolean;
6
+ /** 等待一段时间(毫秒数)以确认 formId 是否生效。如果未指定这个参数,formId 有很小的概率是无效的(如遇到网络失败的情况)。指定这个参数将可以检测 formId 是否有效,以这个参数的时间作为这项检测的超时时间。如果失败,将返回 requestFormId:fail 开头的 formId */
7
+ reportSubmitTimeout?: number;
8
+ /** 携带 form 中的数据触发 submit 事件,event.detail = {value : {'name': 'value'} , formId: '', ...} */
9
+ onSubmit?: (event: GenericEvent) => any;
10
+ /** 表单重置时会触发 reset 事件 */
11
+ onReset?: (event: GenericEvent) => any;
12
+ }
13
+ export declare const Form: React.ComponentType<FormProps>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Form = void 0;
4
+ const runtime_1 = require("@ray-core/runtime");
5
+ exports.Form = (0, runtime_1.createHostComponent)('form');
6
+ exports.Form.defaultProps = {
7
+ reportSubmit: false,
8
+ reportSubmitTimeout: 0,
9
+ };
@@ -0,0 +1,11 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ className: string;
4
+ style: string;
5
+ animation: string;
6
+ reportSubmit: string;
7
+ onSubmit: string;
8
+ onReset: string;
9
+ reportSubmitTimeout: string;
10
+ };
11
+ export declare const props: string[];
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.props = exports.alias = void 0;
4
+ exports.alias = {
5
+ id: 'id',
6
+ className: 'class',
7
+ style: 'style',
8
+ animation: 'animation',
9
+ reportSubmit: 'report-submit',
10
+ onSubmit: 'bindsubmit',
11
+ onReset: 'bindreset',
12
+ reportSubmitTimeout: 'report-submit-timeout',
13
+ };
14
+ exports.props = Object.values(exports.alias);
@@ -0,0 +1,43 @@
1
+ import * as React from 'react';
2
+ import { BaseProps, GenericEvent } from '../../types/component';
3
+ export interface ImageProps extends BaseProps {
4
+ /**
5
+ * 图片资源地址
6
+ */
7
+ src?: string;
8
+ /**
9
+ * 图片裁剪、缩放的模式
10
+ * scaleToFill 缩放模式,不保持纵横比缩放图片,使图片的宽高完全拉伸至填满 image 元素
11
+ * aspectFit 缩放模式,保持纵横比缩放图片,使图片的长边能完全显示出来。也就是说,可以完整地将图片显示出来。
12
+ * aspectFill 缩放模式,保持纵横比缩放图片,只保证图片的短边能完全显示出来。也就是说,图片通常只在水平或垂直方向是完整的,另一个方向将会发生截取。
13
+ * widthFix 缩放模式,宽度不变,高度自动变化,保持原图宽高比不变
14
+ * heightFix 缩放模式,高度不变,宽度自动变化,保持原图宽高比不变
15
+ * top 裁剪模式,不缩放图片,只显示图片的顶部区域
16
+ * bottom 裁剪模式,不缩放图片,只显示图片的底部区域
17
+ * center 裁剪模式,不缩放图片,只显示图片的中间区域
18
+ * left 裁剪模式,不缩放图片,只显示图片的左边区域
19
+ * right 裁剪模式,不缩放图片,只显示图片的右边区域
20
+ * top left 裁剪模式,不缩放图片,只显示图片的左上边区域
21
+ * top right 裁剪模式,不缩放图片,只显示图片的右上边区域
22
+ * bottom left 裁剪模式,不缩放图片,只显示图片的左下边区域
23
+ * bottom right 裁剪模式,不缩放图片,只显示图片的右下边区域
24
+ */
25
+ mode?: 'scaleToFill' | 'aspectFit' | 'aspectFill' | 'widthFix' | 'heightFix' | 'top' | 'bottom' | 'center' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right';
26
+ /**
27
+ * 默认不解析 webP 格式,只支持网络资源
28
+ */
29
+ webp?: boolean;
30
+ /**
31
+ * 图片懒加载,在即将进入一定范围(上下三屏)时才开始加载
32
+ */
33
+ lazyLoad?: boolean;
34
+ /**
35
+ * 当错误发生时触发,,event.detail = {errMsg}
36
+ */
37
+ onError?: (event: GenericEvent) => any;
38
+ /**
39
+ * 当图片载入完毕时触发,event.detail = {height, width}
40
+ */
41
+ onLoad?: (event: GenericEvent) => any;
42
+ }
43
+ export declare const Image: React.ComponentType<ImageProps>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Image = void 0;
4
+ const runtime_1 = require("@ray-core/runtime");
5
+ exports.Image = (0, runtime_1.createHostComponent)('image');
6
+ exports.Image.defaultProps = {
7
+ mode: 'scaleToFill',
8
+ webp: false,
9
+ lazyLoad: false,
10
+ };
@@ -0,0 +1,18 @@
1
+ export declare const alias: {
2
+ id: string;
3
+ src: string;
4
+ mode: string;
5
+ className: string;
6
+ animation: string;
7
+ style: string;
8
+ lazyLoad: string;
9
+ onLoad: string;
10
+ onError: string;
11
+ onTap: string;
12
+ onClick: string;
13
+ onTouchStart: string;
14
+ onTouchMove: string;
15
+ onTouchEnd: string;
16
+ onTouchCancel: string;
17
+ };
18
+ export declare const props: string[];
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.props = exports.alias = void 0;
4
+ exports.alias = {
5
+ id: 'id',
6
+ src: 'src',
7
+ mode: 'mode',
8
+ className: 'class',
9
+ animation: 'animation',
10
+ style: 'style',
11
+ lazyLoad: 'lazy-load',
12
+ onLoad: 'bindload',
13
+ onError: 'binderror',
14
+ onTap: 'bindtap',
15
+ onClick: 'bindtap',
16
+ onTouchStart: 'bindtouchstart',
17
+ onTouchMove: 'bindtouchmove',
18
+ onTouchEnd: 'bindtouchend',
19
+ onTouchCancel: 'bindtouchcancel',
20
+ };
21
+ exports.props = Object.values(exports.alias);
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ import { BaseProps, GenericEvent } from '../../types/component';
3
+ export interface InputProps extends BaseProps {
4
+ value?: string;
5
+ type?: 'text' | 'number' | 'idcard' | 'digit';
6
+ password?: boolean;
7
+ placeholder?: string;
8
+ placeholderStyle?: string;
9
+ disabled?: boolean;
10
+ maxLength?: number;
11
+ focus?: boolean;
12
+ cursorSpacing?: number;
13
+ cursor?: number;
14
+ selectionStart?: number;
15
+ selectionEnd?: number;
16
+ adjustPosition?: boolean;
17
+ confirmType?: 'send' | 'search' | 'next' | 'go' | 'done';
18
+ confirmHold?: boolean;
19
+ onInput?: (event: GenericEvent) => void;
20
+ onFocus?: (event: GenericEvent) => void;
21
+ onBlur?: (event: GenericEvent) => void;
22
+ onConfirm?: (event: GenericEvent) => void;
23
+ onKeyboardHeightChange?: (event: GenericEvent) => void;
24
+ }
25
+ export declare const Input: React.ComponentType<InputProps>;